/external/chromium_org/chrome/browser/ui/ |
fast_unload_controller.h | 29 // regards to beforeunload handlers (have proceed/cancel dialogs) and 36 // that the beforeunload handler was run. If the user allowed the 42 // If beforeunload/unload handlers need to run, FastUnloadController returns 44 // 2. For each tab with a beforeunload/unload handler, ProcessPendingTabs() 70 // Helper function to run beforeunload listeners on a WebContents. 71 // Returns true if |contents| beforeunload listeners were invoked. 74 // Called when a BeforeUnload handler is fired for |contents|. |proceed| 75 // indicates the user's response to the Y/N BeforeUnload handler dialog. If 88 // when there are no remaining beforeunload handlers to be run. 96 // Clears the results of any beforeunload confirmation dialogs triggered by [all...] |
unload_controller.h | 42 // Helper function to run beforeunload listeners on a WebContents. 43 // Returns true if |contents| beforeunload listeners were invoked. 46 // Called when a BeforeUnload handler is fired for |contents|. |proceed| 47 // indicates the user's response to the Y/N BeforeUnload handler dialog. If 60 // when there are no remaining beforeunload handlers to be run. 68 // Clears the results of any beforeunload confirmation dialogs triggered by a 72 // Returns true if |browser_| has any tabs that have BeforeUnload handlers 104 // Processes the next tab that needs it's beforeunload/unload event fired. 107 // Whether we've completed firing all the tabs' beforeunload/unload events. 110 // Clears all the state associated with processing tabs' beforeunload/unloa [all...] |
unload_controller.cc | 47 // If |contents| is being inspected, devtools needs to intercept beforeunload 56 // we would like devtools to call its own beforeunload handlers first, 57 // and then call beforeunload handlers for |contents|. 95 // Now that beforeunload has fired, put the tab on the queue to fire 100 // fire all the beforeunload events before attempting to fire the unload 113 // close if it's beforeunload event has already fired which will happen due 114 // to the interception of it's content's beforeunload. 123 // If there are tabs with outstanding beforeunload handlers: 127 // 2. Otherwise: start sending beforeunload events and return false. 129 // Otherwise, If there are no tabs with outstanding beforeunload handlers [all...] |
fast_unload_controller.cc | 76 // If |contents| is being inspected, devtools needs to intercept beforeunload 86 // we would like devtools to call its own beforeunload handlers first, 87 // and then call beforeunload handlers for |contents|. 131 // Now that beforeunload has fired, queue the tab to fire unload. 136 // fire all the beforeunload events before attempting to fire the unload 149 // close if it's beforeunload event has already fired which will happen due 150 // to the interception of it's content's beforeunload. 159 // If there are tabs with outstanding beforeunload handlers: 163 // 2. Otherwise: start sending beforeunload events and return false. 165 // Otherwise, If there are no tabs with outstanding beforeunload handlers [all...] |
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
JsResultReceiver.java | 9 * modal dialog (alert, beforeunload or confirm) to enable the client to
|
/external/chromium_org/chrome/browser/lifetime/ |
browser_close_manager_browsertest.cc | 272 browser(), embedded_test_server()->GetURL("/beforeunload.html"))); 294 browser(), embedded_test_server()->GetURL("/beforeunload.html"))); 317 browser(), embedded_test_server()->GetURL("/beforeunload.html"))); 360 // and that all beforeunload dialogs are shown again after a cancel. 365 browsers_[0], embedded_test_server()->GetURL("/beforeunload.html"))); 367 browsers_[1], embedded_test_server()->GetURL("/beforeunload.html"))); 369 // Cancel shutdown on the first beforeunload event. 381 // Cancel shutdown on the second beforeunload event. 394 // Allow shutdown for both beforeunload events. 405 // Test that tabs in the same window with a beforeunload event that hangs ar [all...] |
browser_close_manager.h | 39 // Called to report whether a beforeunload dialog was accepted.
|
/external/chromium_org/chrome/browser/devtools/ |
devtools_window.h | 133 // BeforeUnload interception //////////////////////////////////////////////// 136 // beforeunload event of the inspected page is hooked - devtools gets the 137 // first shot at handling beforeunload and presents a dialog to the user. If 141 // another from the webpage as the result of its beforeunload handler. 142 // The following set of methods handle beforeunload event flow through 146 // whether devtools intercept the beforeunload event. 150 // 2. |DevToolsWindow::InterceptPageBeforeUnload| fires beforeunload event 162 // beforeunload dialog having had it's 'stay on this page' button clicked. 163 // 3b. If |proceed| = true, then it fires beforeunload event on |contents| 173 // thus beforeunload event callback from devtools frontend is not delivere [all...] |
devtools_sanity_browsertest.cc | 169 // Used to block until a dev tools window gets beforeunload event. 176 // Invoked when the beforeunload handler fires. 231 "window.addEventListener('beforeunload'," 577 // Tests that BeforeUnload event gets called on docked devtools if 584 // Tests that BeforeUnload event gets called on docked devtools if 592 // Tests that BeforeUnload event gets called on docked devtools if 600 // Tests that BeforeUnload event gets called on undocked devtools if 607 // Tests that BeforeUnload event gets called on undocked devtools if 615 // Tests that BeforeUnload event gets called on undocked devtools if 623 // Tests that BeforeUnload event gets called on undocked devtools i [all...] |
/external/chromium/chrome/browser/ |
unload_uitest.cc | 26 "<html><head><title>beforeunload</title></head><body>" 243 // Navigate to a page with an infinite beforeunload handler. 258 // Navigate to a page with an infinite beforeunload handler. 283 // Tests closing the browser with a beforeunload handler and clicking 284 // OK in the beforeunload confirm dialog. 288 NavigateToDataURL(BEFORE_UNLOAD_HTML, L"beforeunload"); 299 // Tests closing the browser with a beforeunload handler and clicking 300 // CANCEL in the beforeunload confirm dialog. 304 NavigateToDataURL(BEFORE_UNLOAD_HTML, L"beforeunload"); 332 // Tests closing the browser and clicking OK in the beforeunload confirm dialo [all...] |
/external/chromium_org/chrome/browser/ |
unload_browsertest.cc | 46 "<html><head><title>beforeunload</title></head><body>" 220 // Navigate to a page with an infinite beforeunload handler. 235 // Navigate to a page with an infinite beforeunload handler. 260 // Tests closing the browser with a beforeunload handler and clicking 261 // OK in the beforeunload confirm dialog. 263 NavigateToDataURL(BEFORE_UNLOAD_HTML, "beforeunload"); 273 // Tests closing the browser with a beforeunload handler and clicking 274 // CANCEL in the beforeunload confirm dialog. 277 NavigateToDataURL(BEFORE_UNLOAD_HTML, "beforeunload"); 282 // won't put up the beforeunload dialog because it's waiting for an ack fro [all...] |
fast_shutdown_browsertest.cc | 56 // Close the new window, removing the one and only beforeunload handler.
|
/external/chromium_org/chrome/browser/ui/tab_contents/ |
core_tab_helper.h | 31 // cancels a window close via another tab's beforeunload dialog. 35 // after the beforeunload dialog. However, for a window close, it is set 36 // after all the beforeunload dialogs have finished.
|
/external/chromium/chrome/browser/chromeos/ |
tab_closeable_state_watcher_browsertest.cc | 78 // Navigate to URL with BeforeUnload handler. 81 "<html><head><title>beforeunload</title></head><body>" 274 // Tests closing of browser with BeforeUnload handler where user clicks cancel 280 // Navigate to URL with BeforeUnload handler. 284 // Close browser, click Cancel in BeforeUnload confirm dialog. 302 // Tests closing of browser with BeforeUnload handler where user clicks OK (i.e. 307 // Navigate to URL with BeforeUnload handler. 311 // Close browser, click OK in BeforeUnload confirm dialog.
|
/external/chromium_org/chrome/browser/ui/search/ |
instant_unload_handler.h | 18 // InstantUnloadHandler ensures that it runs the BeforeUnload/Unload Handlers 48 // happens if the beforeunload listener returns a string.
|
instant_unload_handler.cc | 70 // Tab doesn't have any beforeunload listeners and can be safely deleted. 79 // Tab has beforeunload listeners. Install a delegate to run them.
|
/external/chromium_org/third_party/WebKit/Source/core/events/ |
BeforeUnloadEvent.cpp | 31 : Event(EventTypeNames::beforeunload, false, true)
|
EventTypeNames.in | 30 beforeunload
|
/external/chromium_org/chrome/browser/resources/chromeos/ |
bluetooth_pair_device.js | 15 * Listener for the |beforeunload| event.
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
DOMWindowEventHandlers.h | 38 DEFINE_STATIC_WINDOW_ATTRIBUTE_EVENT_LISTENER(beforeunload);
|
/external/chromium_org/tools/perf/measurements/ |
page_cycler.js | 59 addEventListener("beforeunload", __onbeforeunload);
|
/external/chromium_org/ui/views/controls/webview/ |
web_dialog_view.h | 138 // beforeunload event. 141 // Whether beforeunload event has been fired and we have finished processing 142 // beforeunload event.
|
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/photo/ |
gallery_scripts.js | 67 window.beforeunload = beforeunload;
|
/external/chromium_org/third_party/WebKit/Source/core/html/ |
HTMLFrameElementBase.cpp | 131 // FIXME: should <frame> elements have beforeunload handlers? 132 setAttributeEventListener(EventTypeNames::beforeunload, createAttributeEventListener(this, name, value));
|
/external/chromium/chrome/browser/chromeos/frame/ |
panel_controller.h | 52 // button is pressed to give beforeunload handlers a chance to cancel.
|