| OLD | NEW |
| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class RenderWidgetHost; | 53 class RenderWidgetHost; |
| 54 class RenderWidgetHostImpl; | 54 class RenderWidgetHostImpl; |
| 55 struct DidOverscrollParams; | 55 struct DidOverscrollParams; |
| 56 struct NativeWebKeyboardEvent; | 56 struct NativeWebKeyboardEvent; |
| 57 | 57 |
| 58 // ----------------------------------------------------------------------------- | 58 // ----------------------------------------------------------------------------- |
| 59 // See comments in render_widget_host_view.h about this class and its members. | 59 // See comments in render_widget_host_view.h about this class and its members. |
| 60 // ----------------------------------------------------------------------------- | 60 // ----------------------------------------------------------------------------- |
| 61 class RenderWidgetHostViewAndroid | 61 class RenderWidgetHostViewAndroid |
| 62 : public RenderWidgetHostViewBase, | 62 : public RenderWidgetHostViewBase, |
| 63 public BrowserAccessibilityDelegate, | |
| 64 public cc::DelegatedFrameResourceCollectionClient, | 63 public cc::DelegatedFrameResourceCollectionClient, |
| 65 public ImageTransportFactoryAndroidObserver, | 64 public ImageTransportFactoryAndroidObserver, |
| 66 public ui::GestureProviderClient, | 65 public ui::GestureProviderClient, |
| 67 public ui::WindowAndroidObserver, | 66 public ui::WindowAndroidObserver, |
| 68 public DelegatedFrameEvictorClient { | 67 public DelegatedFrameEvictorClient { |
| 69 public: | 68 public: |
| 70 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, | 69 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, |
| 71 ContentViewCoreImpl* content_view_core); | 70 ContentViewCoreImpl* content_view_core); |
| 72 virtual ~RenderWidgetHostViewAndroid(); | 71 virtual ~RenderWidgetHostViewAndroid(); |
| 73 | 72 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 uint32 output_surface_id, | 166 uint32 output_surface_id, |
| 168 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; | 167 scoped_ptr<cc::CompositorFrame> frame) 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 }; | 359 }; |
| 373 | 360 |
| 374 scoped_ptr<LastFrameInfo> last_frame_info_; | 361 scoped_ptr<LastFrameInfo> last_frame_info_; |
| 375 | 362 |
| 376 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 363 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 377 }; | 364 }; |
| 378 | 365 |
| 379 } // namespace content | 366 } // namespace content |
| 380 | 367 |
| 381 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 368 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |