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

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

Issue 246773008: RWHI should implement BrowserAccessibilityDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac tests Created 6 years, 7 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_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class OverscrollGlow; 52 class OverscrollGlow;
53 class RenderWidgetHost; 53 class RenderWidgetHost;
54 class RenderWidgetHostImpl; 54 class RenderWidgetHostImpl;
55 struct NativeWebKeyboardEvent; 55 struct NativeWebKeyboardEvent;
56 56
57 // ----------------------------------------------------------------------------- 57 // -----------------------------------------------------------------------------
58 // See comments in render_widget_host_view.h about this class and its members. 58 // See comments in render_widget_host_view.h about this class and its members.
59 // ----------------------------------------------------------------------------- 59 // -----------------------------------------------------------------------------
60 class RenderWidgetHostViewAndroid 60 class RenderWidgetHostViewAndroid
61 : public RenderWidgetHostViewBase, 61 : public RenderWidgetHostViewBase,
62 public BrowserAccessibilityDelegate,
63 public cc::DelegatedFrameResourceCollectionClient, 62 public cc::DelegatedFrameResourceCollectionClient,
64 public ImageTransportFactoryAndroidObserver, 63 public ImageTransportFactoryAndroidObserver,
65 public ui::GestureProviderClient, 64 public ui::GestureProviderClient,
66 public ui::WindowAndroidObserver, 65 public ui::WindowAndroidObserver,
67 public DelegatedFrameEvictorClient { 66 public DelegatedFrameEvictorClient {
68 public: 67 public:
69 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, 68 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget,
70 ContentViewCoreImpl* content_view_core); 69 ContentViewCoreImpl* content_view_core);
71 virtual ~RenderWidgetHostViewAndroid(); 70 virtual ~RenderWidgetHostViewAndroid();
72 71
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, 166 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll,
168 gfx::Vector2dF current_fling_velocity) OVERRIDE; 167 gfx::Vector2dF current_fling_velocity) OVERRIDE;
169 virtual void DidStopFlinging() OVERRIDE; 168 virtual void DidStopFlinging() OVERRIDE;
170 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, 169 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
171 const SkBitmap& zoomed_bitmap) OVERRIDE; 170 const SkBitmap& zoomed_bitmap) OVERRIDE;
172 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() 171 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget()
173 OVERRIDE; 172 OVERRIDE;
174 virtual void LockCompositingSurface() OVERRIDE; 173 virtual void LockCompositingSurface() OVERRIDE;
175 virtual void UnlockCompositingSurface() OVERRIDE; 174 virtual void UnlockCompositingSurface() OVERRIDE;
176 175
177 // Implementation of BrowserAccessibilityDelegate:
178 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE;
179 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE;
180 virtual void AccessibilityScrollToMakeVisible(
181 int acc_obj_id, gfx::Rect subfocus) OVERRIDE;
182 virtual void AccessibilityScrollToPoint(
183 int acc_obj_id, gfx::Point point) OVERRIDE;
184 virtual void AccessibilitySetTextSelection(
185 int acc_obj_id, int start_offset, int end_offset) OVERRIDE;
186 virtual gfx::Point GetLastTouchEventLocation() const OVERRIDE;
187 virtual void FatalAccessibilityTreeError() OVERRIDE;
188
189 // cc::DelegatedFrameResourceCollectionClient implementation. 176 // cc::DelegatedFrameResourceCollectionClient implementation.
190 virtual void UnusedResourcesAreAvailable() OVERRIDE; 177 virtual void UnusedResourcesAreAvailable() OVERRIDE;
191 178
192 // ui::GestureProviderClient implementation. 179 // ui::GestureProviderClient implementation.
193 virtual void OnGestureEvent(const ui::GestureEventData& gesture) OVERRIDE; 180 virtual void OnGestureEvent(const ui::GestureEventData& gesture) OVERRIDE;
194 181
195 // ui::WindowAndroidObserver implementation. 182 // ui::WindowAndroidObserver implementation.
196 virtual void OnCompositingDidCommit() OVERRIDE; 183 virtual void OnCompositingDidCommit() OVERRIDE;
197 virtual void OnAttachCompositor() OVERRIDE {} 184 virtual void OnAttachCompositor() OVERRIDE {}
198 virtual void OnDetachCompositor() OVERRIDE; 185 virtual void OnDetachCompositor() OVERRIDE;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 }; 358 };
372 359
373 scoped_ptr<LastFrameInfo> last_frame_info_; 360 scoped_ptr<LastFrameInfo> last_frame_info_;
374 361
375 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 362 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
376 }; 363 };
377 364
378 } // namespace content 365 } // namespace content
379 366
380 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 367 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698