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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 10837112: Add WebContents* to some more WebContentsDelegate methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index e9bc5614cfa9197ef414bcf092bc5c41a74002d2..ac817cceffd19474ebdf33b78f9d9c866287affe 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -119,7 +119,8 @@ class CONTENT_EXPORT WebContentsDelegate {
// loaded).
// Note that to receive this notification, you must have called
// SetReportLoadProgressEnabled(true) in the render view.
- virtual void LoadProgressChanged(double progress) {}
+ virtual void LoadProgressChanged(WebContents* source,
+ double progress) {}
// Request the delegate to close this web contents, and do whatever cleanup
// it needs to do.
@@ -206,7 +207,8 @@ class CONTENT_EXPORT WebContentsDelegate {
// This is called when WebKit tells us that it is done tabbing through
// controls on the page. Provides a way for WebContentsDelegates to handle
// this. Returns true if the delegate successfully handled it.
- virtual bool TakeFocus(bool reverse);
+ virtual bool TakeFocus(WebContents* soruce,
+ bool reverse);
// Invoked when the page loses mouse capture.
virtual void LostCapture() {}
@@ -246,12 +248,14 @@ class CONTENT_EXPORT WebContentsDelegate {
// Returns true if the |event| was handled. Otherwise, if the |event| would be
// handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
// |*is_keyboard_shortcut| should be set to true.
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
+ virtual bool PreHandleKeyboardEvent(WebContents* source,
+ const NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut);
// Allows delegates to handle unhandled keyboard messages coming back from
// the renderer.
- virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {}
+ virtual void HandleKeyboardEvent(WebContents* source,
+ const NativeWebKeyboardEvent& event) {}
virtual void HandleMouseDown() {}
virtual void HandleMouseUp() {}
« no previous file with comments | « content/browser/web_contents/web_contents_view_win.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698