cef/tests/cefclient/mac/English.lproj/MainMenu.xib

451 lines
28 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10117" systemVersion="16B2657" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment version="1090" identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10117"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="ClientAppDelegate"/>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<menu title="AMainMenu" systemMenu="main" id="29" userLabel="MainMenu">
<items>
<menuItem title="cefclient" tag="1" id="56">
<menu key="submenu" title="TestShell" systemMenu="apple" id="57">
<items>
<menuItem title="About cefclient" id="58">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="-2" id="142"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="236">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Preferences…" keyEquivalent="," id="129" userLabel="121"/>
<menuItem isSeparatorItem="YES" id="143">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Services" id="131">
<menu key="submenu" title="Services" systemMenu="services" id="130"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="144">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Hide cefclient" keyEquivalent="h" id="134">
<connections>
<action selector="hide:" target="-1" id="367"/>
</connections>
</menuItem>
<menuItem title="Hide Others" keyEquivalent="h" id="145">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="hideOtherApplications:" target="-1" id="368"/>
</connections>
</menuItem>
<menuItem title="Show All" id="150">
<connections>
<action selector="unhideAllApplications:" target="-1" id="370"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="149">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Quit cefclient" keyEquivalent="q" id="136" userLabel="1111">
<connections>
<action selector="terminate:" target="-1" id="369"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="File" tag="2" id="83">
<menu key="submenu" title="File" id="81">
<items>
<menuItem title="New" keyEquivalent="n" id="82" userLabel="9">
<connections>
<action selector="newDocument:" target="-1" id="373"/>
</connections>
</menuItem>
<menuItem title="Open…" keyEquivalent="o" id="72">
<connections>
<action selector="openDocument:" target="-1" id="374"/>
</connections>
</menuItem>
<menuItem title="Open Recent" id="124">
<menu key="submenu" title="Open Recent" systemMenu="recentDocuments" id="125">
<items>
<menuItem title="Clear Menu" id="126">
<connections>
<action selector="clearRecentDocuments:" target="-1" id="127"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="79" userLabel="7">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Close" keyEquivalent="w" id="73" userLabel="1">
<connections>
<action selector="performClose:" target="-1" id="193"/>
</connections>
</menuItem>
<menuItem title="Save" keyEquivalent="s" id="75" userLabel="3">
<connections>
<action selector="saveDocument:" target="-1" id="362"/>
</connections>
</menuItem>
<menuItem title="Save As…" keyEquivalent="S" id="80" userLabel="8">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="saveDocumentAs:" target="-1" id="363"/>
</connections>
</menuItem>
<menuItem title="Revert to Saved" id="112" userLabel="10">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="revertDocumentToSaved:" target="-1" id="364"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="74" userLabel="2">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Page Setup..." keyEquivalent="P" id="77" userLabel="5">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="runPageLayout:" target="-1" id="87"/>
</connections>
</menuItem>
<menuItem title="Print…" keyEquivalent="p" id="78" userLabel="6">
<connections>
<action selector="print:" target="-1" id="86"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Edit" tag="3" id="217">
<menu key="submenu" title="Edit" id="205">
<items>
<menuItem title="Undo" keyEquivalent="z" id="207">
<connections>
<action selector="undo:" target="-1" id="223"/>
</connections>
</menuItem>
<menuItem title="Redo" keyEquivalent="Z" id="215">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="redo:" target="-1" id="231"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="206">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Cut" keyEquivalent="x" id="199">
<connections>
<action selector="cut:" target="-1" id="228"/>
</connections>
</menuItem>
<menuItem title="Copy" keyEquivalent="c" id="197">
<connections>
<action selector="copy:" target="-1" id="224"/>
</connections>
</menuItem>
<menuItem title="Paste" keyEquivalent="v" id="203">
<connections>
<action selector="paste:" target="-1" id="226"/>
</connections>
</menuItem>
<menuItem title="Delete" id="202">
<connections>
<action selector="delete:" target="-1" id="235"/>
</connections>
</menuItem>
<menuItem title="Select All" keyEquivalent="a" id="198">
<connections>
<action selector="selectAll:" target="-1" id="232"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="214">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Find" id="218">
<menu key="submenu" title="Find" id="220">
<items>
<menuItem title="Find…" tag="37000" keyEquivalent="f" id="209">
<connections>
<action selector="commandDispatch:" target="-1" id="241"/>
</connections>
</menuItem>
<menuItem title="Find Next" tag="37001" keyEquivalent="g" id="208">
<connections>
<action selector="commandDispatch:" target="-1" id="242"/>
</connections>
</menuItem>
<menuItem title="Find Previous" tag="37002" keyEquivalent="G" id="213">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="commandDispatch:" target="-1" id="243"/>
</connections>
</menuItem>
<menuItem title="Use Selection for Find" keyEquivalent="e" id="221">
<connections>
<action selector="copyToFindPboard:" target="-1" id="244"/>
</connections>
</menuItem>
<menuItem title="Jump to Selection" keyEquivalent="j" id="210">
<connections>
<action selector="centerSelectionInVisibleArea:" target="-1" id="245"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Spelling and Grammar" id="216">
<menu key="submenu" title="Spelling and Grammar" id="200">
<items>
<menuItem title="Show Spelling…" keyEquivalent=":" id="204">
<connections>
<action selector="showGuessPanel:" target="-1" id="230"/>
</connections>
</menuItem>
<menuItem title="Check Spelling" keyEquivalent=";" id="201">
<connections>
<action selector="checkSpelling:" target="-1" id="225"/>
</connections>
</menuItem>
<menuItem title="Check Spelling While Typing" id="219">
<connections>
<action selector="toggleContinuousSpellChecking:" target="-1" id="222"/>
</connections>
</menuItem>
<menuItem title="Check Grammar With Spelling" id="346">
<connections>
<action selector="toggleGrammarChecking:" target="-1" id="347"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Substitutions" id="348">
<menu key="submenu" title="Substitutions" id="349">
<items>
<menuItem title="Smart Copy/Paste" tag="1" keyEquivalent="f" id="350">
<connections>
<action selector="toggleSmartInsertDelete:" target="-1" id="355"/>
</connections>
</menuItem>
<menuItem title="Smart Quotes" tag="2" keyEquivalent="g" id="351">
<connections>
<action selector="toggleAutomaticQuoteSubstitution:" target="-1" id="356"/>
</connections>
</menuItem>
<menuItem title="Smart Links" tag="3" keyEquivalent="G" id="354">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="toggleAutomaticLinkDetection:" target="-1" id="357"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Speech" id="211">
<menu key="submenu" title="Speech" id="212">
<items>
<menuItem title="Start Speaking" id="196">
<connections>
<action selector="startSpeaking:" target="-1" id="233"/>
</connections>
</menuItem>
<menuItem title="Stop Speaking" id="195">
<connections>
<action selector="stopSpeaking:" target="-1" id="227"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Format" tag="4" id="299">
<menu key="submenu" title="Format" id="300">
<items>
<menuItem title="Show Fonts" keyEquivalent="t" id="344"/>
<menuItem title="Show Colors" keyEquivalent="C" id="345">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="orderFrontColorPanel:" target="-1" id="361"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="View" tag="5" id="295">
<menu key="submenu" title="View" id="296">
<items>
<menuItem title="Show Toolbar" keyEquivalent="t" id="297">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="toggleToolbarShown:" target="-1" id="366"/>
</connections>
</menuItem>
<menuItem title="Customize Toolbar…" id="298">
<connections>
<action selector="runToolbarCustomizationPalette:" target="-1" id="365"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Window" tag="6" id="19">
<menu key="submenu" title="Window" systemMenu="window" id="24">
<items>
<menuItem title="Minimize" keyEquivalent="m" id="23">
<connections>
<action selector="performMiniaturize:" target="-1" id="37"/>
</connections>
</menuItem>
<menuItem title="Zoom" id="239">
<connections>
<action selector="performZoom:" target="-1" id="240"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="92">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Bring All to Front" id="5">
<connections>
<action selector="arrangeInFront:" target="-1" id="39"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Help" tag="7" id="103" userLabel="1">
<menu key="submenu" title="Help" id="106" userLabel="2">
<items>
<menuItem title="cefclient Help" keyEquivalent="?" id="111">
<connections>
<action selector="showHelp:" target="-1" id="360"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Tests" tag="8" id="Yv2-Jq-Amk">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Tests" id="CkQ-OF-S73">
<items>
<menuItem title="Get Text" id="Lpo-DT-bV3">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsGetText:" target="-2" id="wHm-G4-hGW"/>
</connections>
</menuItem>
<menuItem title="Get Source" id="hhS-PS-Frj">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsGetSource:" target="-2" id="zj9-5Y-5WK"/>
</connections>
</menuItem>
<menuItem title="New Window" id="I90-8O-ZQB">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsWindowNew:" target="-2" id="vBa-IJ-3KK"/>
</connections>
</menuItem>
<menuItem title="Popup Window" id="a52-WG-ltY">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsWindowPopup:" target="-2" id="8GQ-Ph-2iP"/>
</connections>
</menuItem>
views: Add support for modal browser dialogs A modal dialog is a child CefWindow that implements some special behaviors relative to a parent CefWindow. Like any CefWindow it can be framed with titlebar or frameless, and optionally contain draggable regions (subject to platform limitations described below). Modal dialogs are shown centered on the parent window (inside a single display) and always stay on top of the parent window in z-order. Sizing behavior and available window buttons are controlled via the usual CefWindowDelegate callbacks. For example, the dialog can have a preferred size with resize, minimize and maximize disabled (via GetPreferredSize, CanResize, CanMinimize and CanMaximize respectively). This change adds support for two modality modes. With window modality all controls in the parent window are disabled. With browser modality only the browser view in the parent window is disabled. Both modality modes require that a valid parent window be returned via GetParentWindow. For window modality return true from IsWindowModalDialog and call CefWindow::Show. For browser modality return false from IsWindowModalDialog (the default value) and call CefWindow::ShowAsBrowserModalDialog with a reference to the parent window's browser view. Window modal dialog behavior depends on the platform. On Windows and Linux these dialogs have a titlebar and can be moved independent of the parent window. On macOS these dialogs do not have a titlebar, move with the parent window, and do not support draggable regions (because they are implemented using sheets). On Linux disabling the parent window controls requires a window manager the supports _NET_WM_STATE_MODAL. Browser modal dialog behavior is similar on all platforms. The dialog will be automatically sized and positioned relative to the parent window's browser view. Closing the parent window or navigating the parent browser view will dismiss the dialog. The dialog can also be moved independent of the parent window though it will be recentered when the parent window itself is resized or redisplayed. On MacOS the dialog will move along with the parent window while on Windows and Linux the parent window can be moved independently. To test: Use the Tests > Dialog Window menu option in cefclient with Views enabled (`--use-views` or `--enable-chrome-runtime` command-line flag). Browser modal dialog is the default behavior. For window modal dialog add the `--use-window-modal-dialog` command-line flag.
2023-06-14 10:20:02 +02:00
<menuItem title="Dialog Window" id="a52-WG-ltZ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsWindowDialog:" target="-2" id="8GQ-Ph-2iQ"/>
</connections>
</menuItem>
<menuItem title="Request" id="Ymm-D1-9xh">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsRequest:" target="-2" id="bT6-It-UE3"/>
</connections>
</menuItem>
<menuItem title="Zoom In" id="l8B-JC-657">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsZoomIn:" target="-2" id="5Eq-yz-nca"/>
</connections>
</menuItem>
<menuItem title="Zoom Out" id="XSc-wR-sjC">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsZoomOut:" target="-2" id="xv5-EK-MeY"/>
</connections>
</menuItem>
<menuItem title="Zoom Reset" id="CvI-5Y-Daf">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsZoomReset:" target="-2" id="gHk-RN-RLz"/>
</connections>
</menuItem>
<menuItem title="Set FPS" id="pJQ-OF-Zof">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsSetFPS:" target="-2" id="tmx-Ro-ryG"/>
</connections>
</menuItem>
<menuItem title="Set Scale Factor" id="NSu-VF-AOB">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsSetScaleFactor:" target="-2" id="S47-BI-RtO"/>
</connections>
</menuItem>
<menuItem title="Begin Tracing" id="na7-bM-yBE">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsTracingBegin:" target="-2" id="kx2-uj-cIe"/>
</connections>
</menuItem>
<menuItem title="End Tracing" id="q8j-Jh-DDj">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsTracingEnd:" target="-2" id="dtx-FX-x9L"/>
</connections>
</menuItem>
<menuItem title="Print" id="gXe-px-Ble">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsPrint:" target="-2" id="Ovd-bh-UYy"/>
</connections>
</menuItem>
<menuItem title="Print to PDF" id="khT-ti-jYy">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsPrintToPdf:" target="-2" id="f8B-MA-teX"/>
</connections>
</menuItem>
<menuItem title="Other Tests" id="7VD-bm-EOX">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsOtherTests:" target="-2" id="HbC-QY-Pwf"/>
</connections>
</menuItem>
<menuItem title="Dump without crashing" id="Xsl-IU-4Kk">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="menuTestsDumpWithoutCrashing:" target="-2" id="cSU-rq-oMD"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
<userDefaultsController representsSharedInstance="YES" id="389"/>
</objects>
</document>