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

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

Issue 165143003: Handle Ctrl+Mousewheel after renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable Ctrl+wheel checks on Mac 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
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_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 24 matching lines...) Expand all
35 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 35 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
36 // |*is_keyboard_shortcut| should be set to true. 36 // |*is_keyboard_shortcut| should be set to true.
37 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 37 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
38 bool* is_keyboard_shortcut); 38 bool* is_keyboard_shortcut);
39 39
40 // Callback to inform the browser that the renderer did not process the 40 // Callback to inform the browser that the renderer did not process the
41 // specified events. This gives an opportunity to the browser to process the 41 // specified events. This gives an opportunity to the browser to process the
42 // event (used for keyboard shortcuts). 42 // event (used for keyboard shortcuts).
43 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} 43 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {}
44 44
45 // Callback to give the browser a chance to handle the specified mouse wheel 45 // Callback to inform the browser that the renderer did not process the
46 // event before sending it to the renderer. 46 // specified mouse wheel event. This gives an opportunity to the browser to
47 // process the event (used for zoom shortcuts).
47 // Returns true if the |event| was handled. 48 // Returns true if the |event| was handled.
48 virtual bool PreHandleWheelEvent(const blink::WebMouseWheelEvent& event); 49 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event);
49 50
50 // Callback to give the browser a chance to handle the specified gesture 51 // Callback to give the browser a chance to handle the specified gesture
51 // event before sending it to the renderer. 52 // event before sending it to the renderer.
52 // Returns true if the |event| was handled. 53 // Returns true if the |event| was handled.
53 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); 54 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event);
54 55
55 // Notifies that screen rects were sent to renderer process. 56 // Notifies that screen rects were sent to renderer process.
56 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} 57 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
57 58
58 #if defined(OS_WIN) 59 #if defined(OS_WIN)
59 // Returns the widget's parent's NativeViewAccessible. 60 // Returns the widget's parent's NativeViewAccessible.
60 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 61 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
61 #endif 62 #endif
62 63
63 protected: 64 protected:
64 virtual ~RenderWidgetHostDelegate() {} 65 virtual ~RenderWidgetHostDelegate() {}
65 }; 66 };
66 67
67 } // namespace content 68 } // namespace content
68 69
69 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 70 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/input_router_impl.cc ('k') | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698