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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 1388293002: Notify WebContentsObservers of user interactions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nits Created 5 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "third_party/WebKit/public/web/WebInputEvent.h"
11 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
12 13
13 namespace blink { 14 namespace blink {
14 class WebMouseWheelEvent; 15 class WebMouseWheelEvent;
15 class WebGestureEvent; 16 class WebGestureEvent;
16 } 17 }
17 18
18 namespace gfx { 19 namespace gfx {
19 class Point; 20 class Point;
20 } 21 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Callback to inform the browser that the renderer did not process the 58 // Callback to inform the browser that the renderer did not process the
58 // specified events. This gives an opportunity to the browser to process the 59 // specified events. This gives an opportunity to the browser to process the
59 // event (used for keyboard shortcuts). 60 // event (used for keyboard shortcuts).
60 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} 61 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {}
61 62
62 // Callback to inform the browser that the renderer did not process the 63 // Callback to inform the browser that the renderer did not process the
63 // specified mouse wheel event. Returns true if the browser has handled 64 // specified mouse wheel event. Returns true if the browser has handled
64 // the event itself. 65 // the event itself.
65 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); 66 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event);
66 67
68 // Notification the user has performed a direct interaction (mouse down, raw
69 // key down, or gesture tap) while focus was on the page. This is used to
70 // inform the delegate that a user is interacting with a site.
71 virtual void OnUserInteraction(const blink::WebInputEvent::Type type) {}
72
67 // Callback to give the browser a chance to handle the specified gesture 73 // Callback to give the browser a chance to handle the specified gesture
68 // event before sending it to the renderer. 74 // event before sending it to the renderer.
69 // Returns true if the |event| was handled. 75 // Returns true if the |event| was handled.
70 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); 76 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event);
71 77
72 // Notifies that screen rects were sent to renderer process. 78 // Notifies that screen rects were sent to renderer process.
73 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} 79 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
74 80
75 // Get the root BrowserAccessibilityManager for this frame tree. 81 // Get the root BrowserAccessibilityManager for this frame tree.
76 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); 82 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager();
(...skipping 22 matching lines...) Expand all
99 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 105 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
100 #endif 106 #endif
101 107
102 protected: 108 protected:
103 virtual ~RenderWidgetHostDelegate() {} 109 virtual ~RenderWidgetHostDelegate() {}
104 }; 110 };
105 111
106 } // namespace content 112 } // namespace content
107 113
108 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 114 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698