Rename components/app_modal to components/javascript_dialogs
The code in this component is unique to javascript dialogs, and does
not cover all app modals. Further, it has some view code that isn't
specifically for app modal javascript dialogs, but is re-used for tab
modals. Some tab modal code from //chrome will be moved here soon, so
rename from app_modal to javascript_dialogs. Class names reflect whether
their use is specific to the app modal control flow.
Also, rename some classes to better reflect their roles:
. JavaScriptDialogManager (implements content::JavaScriptDialogManager)
=> AppModalDialogManager
. JavaScriptAppModalDialog => AppModalDialogController
. NativeAppModalDialog => AppModalDialogView
etc.
Bug: 1025256
Change-Id: I0a1865ec71897ae6549184bc317ede29cc56438a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2031936
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Commit-Queue: Evan Stade <[email protected]>
Cr-Commit-Position: refs/heads/master@{#737355}
diff --git a/components/javascript_dialogs_strings.grdp b/components/javascript_dialogs_strings.grdp
new file mode 100644
index 0000000..fcb4999
--- /dev/null
+++ b/components/javascript_dialogs_strings.grdp
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<grit-part>
+
+ <!-- JavaScript Dialog Box strings -->
+ <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE" desc="Title for JavaScript prompt and confirm originating from a webpage">
+ <ph name="SITE">$1<ex>http://www.google.com</ex></ph> says
+ </message>
+ <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_IFRAME" desc="Title for JavaScript prompt and confirm originating from an iframe inside the webpage">
+ An embedded page at <ph name="SITE">$1<ex>http://www.google.com</ex></ph> says
+ </message>
+ <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_NONSTANDARD_URL" desc="Title for JavaScript prompt and confirm originating from a webpage with a non-standard URL such as |data:|">
+ This page says
+ </message>
+ <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_NONSTANDARD_URL_IFRAME" desc="Title for JavaScript prompt and confirm originating from an iframe inside the webpage with a non-standard URL such as |data:|">
+ An embedded page on this page says
+ </message>
+
+ <message name="IDS_JAVASCRIPT_MESSAGEBOX_SUPPRESS_OPTION" desc="Optional UI shown on the message box, in the form of a checkbox, allowing the user to suppress additional message boxes from the page.">
+ Prevent this page from creating additional dialogs
+ </message>
+
+ <!-- "Before Unload" Dialog Box strings -->
+ <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_TITLE" desc="Title for the 'before unload' dialog.">
+ Leave site?
+ </message>
+ <message name="IDS_BEFOREUNLOAD_APP_MESSAGEBOX_TITLE" desc="Title for the 'before unload' dialog for apps.">
+ Leave app?
+ </message>
+ <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_OK_BUTTON_LABEL" desc="The text on the button which navigates the user away from the page.">
+ Leave
+ </message>
+ <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_MESSAGE" desc="Body text in a dialog asking the user to confirm that they want to leave or reload a website.">
+ Changes you made may not be saved.
+ </message>
+
+ <!-- "Before Reload" Dialog Box strings (same as "Before Unload" but when reloading rather than unloading the page -->
+ <message name="IDS_BEFORERELOAD_MESSAGEBOX_TITLE" desc="Title for the 'before unload' dialog for reloads.">
+ Reload site?
+ </message>
+ <message name="IDS_BEFORERELOAD_APP_MESSAGEBOX_TITLE" desc="Title for the 'before unload' dialog for reloads of apps.">
+ Reload app?
+ </message>
+ <message name="IDS_BEFORERELOAD_MESSAGEBOX_OK_BUTTON_LABEL" desc="The text on the button which reloads the page.">
+ Reload
+ </message>
+
+</grit-part>