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

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

Issue 474213002: DevTools: control touch emulation from the browser side only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Making win bot happy. Created 6 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 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 "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"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Returns true if the |event| was handled. 54 // Returns true if the |event| was handled.
55 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); 55 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event);
56 56
57 // Callback to inform the browser that the renderer did not process the 57 // Callback to inform the browser that the renderer did not process the
58 // specified gesture event. Returns true if the |event| was handled. 58 // specified gesture event. Returns true if the |event| was handled.
59 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); 59 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event);
60 60
61 // Notifies that screen rects were sent to renderer process. 61 // Notifies that screen rects were sent to renderer process.
62 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} 62 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
63 63
64 // Notifies that RenderWidgetHost will toggle touch emulation.
65 virtual void OnTouchEmulationEnabled(bool enabled) {}
66
67 // Get the root BrowserAccessibilityManager for this frame tree. 64 // Get the root BrowserAccessibilityManager for this frame tree.
68 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); 65 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager();
69 66
70 // Get the root BrowserAccessibilityManager for this frame tree, 67 // Get the root BrowserAccessibilityManager for this frame tree,
71 // or create it if it doesn't exist. 68 // or create it if it doesn't exist.
72 virtual BrowserAccessibilityManager* 69 virtual BrowserAccessibilityManager*
73 GetOrCreateRootBrowserAccessibilityManager(); 70 GetOrCreateRootBrowserAccessibilityManager();
74 71
75 #if defined(OS_WIN) 72 #if defined(OS_WIN)
76 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 73 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
77 #endif 74 #endif
78 75
79 protected: 76 protected:
80 virtual ~RenderWidgetHostDelegate() {} 77 virtual ~RenderWidgetHostDelegate() {}
81 }; 78 };
82 79
83 } // namespace content 80 } // namespace content
84 81
85 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 82 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698