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

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

Issue 181723006: Handle mac trackpad zoom via GesturePinch events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jdduke CR feedback and fix win build errors 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 | Annotate | Revision Log
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Callback to inform the browser that the renderer did not process the 45 // Callback to inform the browser that the renderer did not process the
46 // specified mouse wheel event. Returns true if the browser has handled 46 // specified mouse wheel event. Returns true if the browser has handled
47 // the event itself. 47 // the event itself.
48 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); 48 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event);
49 49
50 // Callback to give the browser a chance to handle the specified gesture 50 // Callback to give the browser a chance to handle the specified gesture
51 // event before sending it to the renderer. 51 // event before sending it to the renderer.
52 // Returns true if the |event| was handled. 52 // Returns true if the |event| was handled.
53 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); 53 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event);
54 54
55 // Callback to inform the browser that the renderer did not process the
56 // specified gesture event. Returns true if the |event| was handled.
57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event);
58
55 // Notifies that screen rects were sent to renderer process. 59 // Notifies that screen rects were sent to renderer process.
56 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} 60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
57 61
58 #if defined(OS_WIN) 62 #if defined(OS_WIN)
59 // Returns the widget's parent's NativeViewAccessible. 63 // Returns the widget's parent's NativeViewAccessible.
60 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 64 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
61 #endif 65 #endif
62 66
63 protected: 67 protected:
64 virtual ~RenderWidgetHostDelegate() {} 68 virtual ~RenderWidgetHostDelegate() {}
65 }; 69 };
66 70
67 } // namespace content 71 } // namespace content
68 72
69 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 73 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698