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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 namespace media { 44 namespace media {
45 class VideoFrame; 45 class VideoFrame;
46 } 46 }
47 47
48 namespace blink { 48 namespace blink {
49 struct WebScreenInfo; 49 struct WebScreenInfo;
50 } 50 }
51 51
52 namespace content { 52 namespace content {
53 class BrowserAccessibilityDelegate;
54 class BrowserAccessibilityManager; 53 class BrowserAccessibilityManager;
55 class SyntheticGesture; 54 class SyntheticGesture;
56 class SyntheticGestureTarget; 55 class SyntheticGestureTarget;
57 class WebCursor; 56 class WebCursor;
58 struct DidOverscrollParams; 57 struct DidOverscrollParams;
59 struct NativeWebKeyboardEvent; 58 struct NativeWebKeyboardEvent;
60 struct WebPluginGeometry; 59 struct WebPluginGeometry;
61 60
62 // Basic implementation shared by concrete RenderWidgetHostView subclasses. 61 // Basic implementation shared by concrete RenderWidgetHostView subclasses.
63 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, 62 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
(...skipping 18 matching lines...) Expand all
82 // IPC::Listener implementation: 81 // IPC::Listener implementation:
83 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 82 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
84 83
85 // Called by the host when the input flush has completed. 84 // Called by the host when the input flush has completed.
86 void OnDidFlushInput(); 85 void OnDidFlushInput();
87 86
88 void SetPopupType(blink::WebPopupType popup_type); 87 void SetPopupType(blink::WebPopupType popup_type);
89 88
90 blink::WebPopupType GetPopupType(); 89 blink::WebPopupType GetPopupType();
91 90
91 // Get the BrowserAccessibilityManager if it exists, may return NULL.
92 BrowserAccessibilityManager* GetBrowserAccessibilityManager() const;
93
94 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager);
95
92 // Return a value that is incremented each time the renderer swaps a new frame 96 // Return a value that is incremented each time the renderer swaps a new frame
93 // to the view. 97 // to the view.
94 uint32 RendererFrameNumber(); 98 uint32 RendererFrameNumber();
95 99
96 // Called each time the RenderWidgetHost receives a new frame for display from 100 // Called each time the RenderWidgetHost receives a new frame for display from
97 // the renderer. 101 // the renderer.
98 void DidReceiveRendererFrame(); 102 void DidReceiveRendererFrame();
99 103
100 // Notification that a resize or move session ended on the native widget. 104 // Notification that a resize or move session ended on the native widget.
101 void UpdateScreenInfo(gfx::NativeView view); 105 void UpdateScreenInfo(gfx::NativeView view);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 virtual void GestureEventAck(const blink::WebGestureEvent& event, 144 virtual void GestureEventAck(const blink::WebGestureEvent& event,
141 InputEventAckState ack_result); 145 InputEventAckState ack_result);
142 146
143 // Create a platform specific SyntheticGestureTarget implementation that will 147 // Create a platform specific SyntheticGestureTarget implementation that will
144 // be used to inject synthetic input events. 148 // be used to inject synthetic input events.
145 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget(); 149 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget();
146 150
147 // Return true if frame subscription is supported on this platform. 151 // Return true if frame subscription is supported on this platform.
148 virtual bool CanSubscribeFrame() const; 152 virtual bool CanSubscribeFrame() const;
149 153
150 // Create a BrowserAccessibilityManager for this view. 154 // Create a BrowserAccessibilityManager for this view if it's possible to
151 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 155 // create one and if one doesn't exist already. Some ports may not create
152 BrowserAccessibilityDelegate* delegate); 156 // one depending on the current state.
157 virtual void CreateBrowserAccessibilityManagerIfNeeded();
153 158
154 virtual void AccessibilityShowMenu(const gfx::Point& point); 159 virtual void OnAccessibilitySetFocus(int acc_obj_id);
160 virtual void AccessibilityShowMenu(int acc_obj_id);
155 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds); 161 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds);
156 162
157 virtual SkColorType PreferredReadbackFormat(); 163 virtual SkColorType PreferredReadbackFormat();
158 164
159 // Informs that the focused DOM node has changed. 165 // Informs that the focused DOM node has changed.
160 virtual void FocusedNodeChanged(bool is_editable_node) {} 166 virtual void FocusedNodeChanged(bool is_editable_node) {}
161 167
162 virtual void OnSwapCompositorFrame(uint32 output_surface_id, 168 virtual void OnSwapCompositorFrame(uint32 output_surface_id,
163 scoped_ptr<cc::CompositorFrame> frame) {} 169 scoped_ptr<cc::CompositorFrame> frame) {}
164 170
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 // The orientation of the display the renderer is currently on. 419 // The orientation of the display the renderer is currently on.
414 gfx::Display::Rotation current_display_rotation_; 420 gfx::Display::Rotation current_display_rotation_;
415 421
416 // Whether pinch-to-zoom should be enabled and pinch events forwarded to the 422 // Whether pinch-to-zoom should be enabled and pinch events forwarded to the
417 // renderer. 423 // renderer.
418 bool pinch_zoom_enabled_; 424 bool pinch_zoom_enabled_;
419 425
420 private: 426 private:
421 void FlushInput(); 427 void FlushInput();
422 428
429 // Manager of the tree representation of the WebKit render tree.
430 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
431
423 gfx::Rect current_display_area_; 432 gfx::Rect current_display_area_;
424 433
425 uint32 renderer_frame_number_; 434 uint32 renderer_frame_number_;
426 435
427 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 436 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
428 437
429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 438 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
430 }; 439 };
431 440
432 } // namespace content 441 } // namespace content
433 442
434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 443 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698