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

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

Issue 215533004: Revert of Make start/stop loading notifications per-frame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebViewClient.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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 // The client may choose to alter the navigation policy. Otherwise, 161 // The client may choose to alter the navigation policy. Otherwise,
162 // defaultPolicy should just be returned. 162 // defaultPolicy should just be returned.
163 virtual WebNavigationPolicy decidePolicyForNavigation( 163 virtual WebNavigationPolicy decidePolicyForNavigation(
164 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi gationType, 164 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi gationType,
165 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli cy; } 165 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli cy; }
166 166
167 167
168 // Navigational notifications ------------------------------------------ 168 // Navigational notifications ------------------------------------------
169 169
170 // These notifications bracket any loading that occurs in the WebFrame.
171 virtual void didStartLoading(bool toDifferentDocument) { }
172 virtual void didStopLoading() { }
173
174 // Notification that some progress was made loading the current frame.
175 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully
176 // loaded).
177 virtual void didChangeLoadProgress(double loadProgress) { }
178
179 // A form submission has been requested, but the page's submit event handler 170 // A form submission has been requested, but the page's submit event handler
180 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.) 171 // hasn't yet had a chance to run (and possibly alter/interrupt the submit.)
181 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { } 172 virtual void willSendSubmitEvent(WebLocalFrame*, const WebFormElement&) { }
182 173
183 // A form submission is about to occur. 174 // A form submission is about to occur.
184 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { } 175 virtual void willSubmitForm(WebLocalFrame*, const WebFormElement&) { }
185 176
186 // A datasource has been created for a new navigation. The given 177 // A datasource has been created for a new navigation. The given
187 // datasource will become the provisional datasource for the frame. 178 // datasource will become the provisional datasource for the frame.
188 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { } 179 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) { }
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // Send initial drawing parameters to a child frame that is being rendered o ut of process. 403 // Send initial drawing parameters to a child frame that is being rendered o ut of process.
413 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } 404 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { }
414 405
415 protected: 406 protected:
416 ~WebFrameClient() { } 407 ~WebFrameClient() { }
417 }; 408 };
418 409
419 } // namespace blink 410 } // namespace blink
420 411
421 #endif 412 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698