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

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

Issue 1735833002: Remove WebContentsObserver::DidGetUserGesture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing reviewer comment Created 4 years, 10 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // specified events. This gives an opportunity to the browser to process the 72 // specified events. This gives an opportunity to the browser to process the
73 // event (used for keyboard shortcuts). 73 // event (used for keyboard shortcuts).
74 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} 74 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {}
75 75
76 // Callback to inform the browser that the renderer did not process the 76 // Callback to inform the browser that the renderer did not process the
77 // specified mouse wheel event. Returns true if the browser has handled 77 // specified mouse wheel event. Returns true if the browser has handled
78 // the event itself. 78 // the event itself.
79 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); 79 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event);
80 80
81 // Notification the user has performed a direct interaction (mouse down, mouse 81 // Notification the user has performed a direct interaction (mouse down, mouse
82 // wheel, raw key down, or gesture tap) while focus was on the page. Informs 82 // wheel, raw key down, gesture tap, or browser-initiated navigation) while
83 // the delegate that a user is interacting with a site. Only the first mouse 83 // focus was on the page. Informs the delegate that a user is interacting with
84 // wheel event during a scroll will trigger this method. 84 // a site. Only the first mouse wheel event during a scroll will trigger this
85 virtual void OnUserInteraction(const blink::WebInputEvent::Type type) {} 85 // method.
86 virtual void OnUserInteraction(RenderWidgetHostImpl* render_widget_host,
87 const blink::WebInputEvent::Type type) {}
86 88
87 // Callback to give the browser a chance to handle the specified gesture 89 // Callback to give the browser a chance to handle the specified gesture
88 // event before sending it to the renderer. 90 // event before sending it to the renderer.
89 // Returns true if the |event| was handled. 91 // Returns true if the |event| was handled.
90 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); 92 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event);
91 93
92 // Notification the user has made a gesture while focus was on the
93 // page. This is used to avoid uninitiated user downloads (aka carpet
94 // bombing), see DownloadRequestLimiter for details.
95 virtual void OnUserGesture(RenderWidgetHostImpl* render_widget_host) {}
96
97 // Notifies that screen rects were sent to renderer process. 94 // Notifies that screen rects were sent to renderer process.
98 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} 95 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
99 96
100 // Get the root BrowserAccessibilityManager for this frame tree. 97 // Get the root BrowserAccessibilityManager for this frame tree.
101 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); 98 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager();
102 99
103 // Get the root BrowserAccessibilityManager for this frame tree, 100 // Get the root BrowserAccessibilityManager for this frame tree,
104 // or create it if it doesn't exist. 101 // or create it if it doesn't exist.
105 virtual BrowserAccessibilityManager* 102 virtual BrowserAccessibilityManager*
106 GetOrCreateRootBrowserAccessibilityManager(); 103 GetOrCreateRootBrowserAccessibilityManager();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // WebContents. 183 // WebContents.
187 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} 184 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {}
188 185
189 protected: 186 protected:
190 virtual ~RenderWidgetHostDelegate() {} 187 virtual ~RenderWidgetHostDelegate() {}
191 }; 188 };
192 189
193 } // namespace content 190 } // namespace content
194 191
195 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 192 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698