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

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

Issue 407493002: Revert of Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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"
11 11
12 namespace blink { 12 namespace blink {
13 class WebMouseWheelEvent; 13 class WebMouseWheelEvent;
14 class WebGestureEvent; 14 class WebGestureEvent;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 18
19 class BrowserAccessibilityManager;
20 class RenderWidgetHostImpl; 19 class RenderWidgetHostImpl;
21 struct NativeWebKeyboardEvent; 20 struct NativeWebKeyboardEvent;
22 21
23 // 22 //
24 // RenderWidgetHostDelegate 23 // RenderWidgetHostDelegate
25 // 24 //
26 // An interface implemented by an object interested in knowing about the state 25 // An interface implemented by an object interested in knowing about the state
27 // of the RenderWidgetHost. 26 // of the RenderWidgetHost.
28 class CONTENT_EXPORT RenderWidgetHostDelegate { 27 class CONTENT_EXPORT RenderWidgetHostDelegate {
29 public: 28 public:
(...skipping 26 matching lines...) Expand all
56 // Callback to inform the browser that the renderer did not process the 55 // Callback to inform the browser that the renderer did not process the
57 // specified gesture event. Returns true if the |event| was handled. 56 // specified gesture event. Returns true if the |event| was handled.
58 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); 57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event);
59 58
60 // Notifies that screen rects were sent to renderer process. 59 // Notifies that screen rects were sent to renderer process.
61 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} 60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
62 61
63 // Notifies that RenderWidgetHost will toggle touch emulation. 62 // Notifies that RenderWidgetHost will toggle touch emulation.
64 virtual void OnTouchEmulationEnabled(bool enabled) {} 63 virtual void OnTouchEmulationEnabled(bool enabled) {}
65 64
66 // Get the root BrowserAccessibilityManager for this frame tree.
67 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager();
68
69 // Get the root BrowserAccessibilityManager for this frame tree,
70 // or create it if it doesn't exist.
71 virtual BrowserAccessibilityManager*
72 GetOrCreateRootBrowserAccessibilityManager();
73
74 #if defined(OS_WIN) 65 #if defined(OS_WIN)
66 // Returns the widget's parent's NativeViewAccessible.
75 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 67 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
76 #endif 68 #endif
77 69
78 protected: 70 protected:
79 virtual ~RenderWidgetHostDelegate() {} 71 virtual ~RenderWidgetHostDelegate() {}
80 }; 72 };
81 73
82 } // namespace content 74 } // namespace content
83 75
84 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ 76 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_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