Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: public/web/WebFrame.h

Issue 219163005: Move dispatchUnloadEvent to WebFrame, part 1/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | public/web/WebView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 virtual WebPerformance performance() const = 0; 241 virtual WebPerformance performance() const = 0;
242 242
243 243
244 // Closing ------------------------------------------------------------- 244 // Closing -------------------------------------------------------------
245 245
246 // Runs beforeunload handlers for this frame, returning false if a 246 // Runs beforeunload handlers for this frame, returning false if a
247 // handler suppressed unloading. 247 // handler suppressed unloading.
248 virtual bool dispatchBeforeUnloadEvent() = 0; 248 virtual bool dispatchBeforeUnloadEvent() = 0;
249 249
250 // Runs unload handlers for this frame.
251 virtual void dispatchUnloadEvent() = 0;
252
250 253
251 // Scripting ---------------------------------------------------------- 254 // Scripting ----------------------------------------------------------
252 255
253 // Returns a NPObject corresponding to this frame's DOMWindow. 256 // Returns a NPObject corresponding to this frame's DOMWindow.
254 virtual NPObject* windowObject() const = 0; 257 virtual NPObject* windowObject() const = 0;
255 258
256 // Binds a NPObject as a property of this frame's DOMWindow. 259 // Binds a NPObject as a property of this frame's DOMWindow.
257 virtual void bindToWindowObject(const WebString& name, NPObject*) = 0; 260 virtual void bindToWindowObject(const WebString& name, NPObject*) = 0;
258 virtual void bindToWindowObject( 261 virtual void bindToWindowObject(
259 const WebString& name, NPObject*, void*) = 0; 262 const WebString& name, NPObject*, void*) = 0;
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // text form. This is used only by layout tests. 677 // text form. This is used only by layout tests.
675 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; 678 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0;
676 679
677 protected: 680 protected:
678 ~WebFrame() { } 681 ~WebFrame() { }
679 }; 682 };
680 683
681 } // namespace blink 684 } // namespace blink
682 685
683 #endif 686 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698