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

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

Issue 217543005: Move dispatchBeforeUnloadEvent to WebFrame, part 1/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« Source/web/WebFrameImpl.cpp ('K') | « public/web/WebFrame.h ('k') | no next file » | 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, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Allows setting the state of the various bars exposed via BarProp 143 // Allows setting the state of the various bars exposed via BarProp
144 // properties on the window object. The size related fields of 144 // properties on the window object. The size related fields of
145 // WebWindowFeatures are ignored. 145 // WebWindowFeatures are ignored.
146 virtual void setWindowFeatures(const WebWindowFeatures&) = 0; 146 virtual void setWindowFeatures(const WebWindowFeatures&) = 0;
147 147
148 148
149 // Closing ------------------------------------------------------------- 149 // Closing -------------------------------------------------------------
150 150
151 // Runs beforeunload handlers for the current page, returning false if 151 // Runs beforeunload handlers for the current page, returning false if
152 // any handler suppressed unloading. 152 // any handler suppressed unloading.
153 // OBSOLETE; DO NOT USE. Call it on WebFrame instead.
153 virtual bool dispatchBeforeUnloadEvent() = 0; 154 virtual bool dispatchBeforeUnloadEvent() = 0;
154 155
155 // Runs unload handlers for the current page. 156 // Runs unload handlers for the current page.
156 virtual void dispatchUnloadEvent() = 0; 157 virtual void dispatchUnloadEvent() = 0;
157 158
158 159
159 // Frames -------------------------------------------------------------- 160 // Frames --------------------------------------------------------------
160 161
161 virtual WebFrame* mainFrame() = 0; 162 virtual WebFrame* mainFrame() = 0;
162 163
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 497
497 // Testing functionality for TestRunner --------------------------------- 498 // Testing functionality for TestRunner ---------------------------------
498 499
499 protected: 500 protected:
500 ~WebView() {} 501 ~WebView() {}
501 }; 502 };
502 503
503 } // namespace blink 504 } // namespace blink
504 505
505 #endif 506 #endif
OLDNEW
« Source/web/WebFrameImpl.cpp ('K') | « public/web/WebFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698