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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 11194043: Report load progress for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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 | « content/browser/web_contents/web_contents_impl.cc ('k') | content/renderer/render_view_impl.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Deactivates the specified contents by deactivating its container and 111 // Deactivates the specified contents by deactivating its container and
112 // potentialy moving it to the back of the Z order. 112 // potentialy moving it to the back of the Z order.
113 virtual void DeactivateContents(WebContents* contents) {} 113 virtual void DeactivateContents(WebContents* contents) {}
114 114
115 // Notifies the delegate that this contents is starting or is done loading 115 // Notifies the delegate that this contents is starting or is done loading
116 // some resource. The delegate should use this notification to represent 116 // some resource. The delegate should use this notification to represent
117 // loading feedback. See WebContents::IsLoading() 117 // loading feedback. See WebContents::IsLoading()
118 virtual void LoadingStateChanged(WebContents* source) {} 118 virtual void LoadingStateChanged(WebContents* source) {}
119 119
120 #if defined(OS_ANDROID)
120 // Notifies the delegate that the page has made some progress loading. 121 // Notifies the delegate that the page has made some progress loading.
121 // |progress| is a value between 0.0 (nothing loaded) to 1.0 (page fully 122 // |progress| is a value between 0.0 (nothing loaded) to 1.0 (page fully
122 // loaded). 123 // loaded).
123 // Note that to receive this notification, you must have called
124 // SetReportLoadProgressEnabled(true) in the render view.
125 virtual void LoadProgressChanged(WebContents* source, 124 virtual void LoadProgressChanged(WebContents* source,
126 double progress) {} 125 double progress) {}
126 #endif
127 127
128 // Request the delegate to close this web contents, and do whatever cleanup 128 // Request the delegate to close this web contents, and do whatever cleanup
129 // it needs to do. 129 // it needs to do.
130 virtual void CloseContents(WebContents* source) {} 130 virtual void CloseContents(WebContents* source) {}
131 131
132 // Informs the delegate that the underlying RenderViewHost has been swapped 132 // Informs the delegate that the underlying RenderViewHost has been swapped
133 // out so it can perform any cleanup necessary. 133 // out so it can perform any cleanup necessary.
134 virtual void SwappedOut(WebContents* source) {} 134 virtual void SwappedOut(WebContents* source) {}
135 135
136 // Request the delegate to move this WebContents to the specified position 136 // Request the delegate to move this WebContents to the specified position
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // Called when |this| is no longer the WebContentsDelegate for |source|. 442 // Called when |this| is no longer the WebContentsDelegate for |source|.
443 void Detach(WebContents* source); 443 void Detach(WebContents* source);
444 444
445 // The WebContents that this is currently a delegate for. 445 // The WebContents that this is currently a delegate for.
446 std::set<WebContents*> attached_contents_; 446 std::set<WebContents*> attached_contents_;
447 }; 447 };
448 448
449 } // namespace content 449 } // namespace content
450 450
451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698