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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 virtual void DidStopFlinging() override; | 172 virtual void DidStopFlinging() override; |
173 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 173 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
174 const SkBitmap& zoomed_bitmap) override; | 174 const SkBitmap& zoomed_bitmap) override; |
175 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 175 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
176 override; | 176 override; |
177 virtual void LockCompositingSurface() override; | 177 virtual void LockCompositingSurface() override; |
178 virtual void UnlockCompositingSurface() override; | 178 virtual void UnlockCompositingSurface() override; |
179 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, | 179 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, |
180 size_t start_offset, | 180 size_t start_offset, |
181 size_t end_offset) override; | 181 size_t end_offset) override; |
| 182 void OnMainFrameNavigation() override; |
182 | 183 |
183 // cc::DelegatedFrameResourceCollectionClient implementation. | 184 // cc::DelegatedFrameResourceCollectionClient implementation. |
184 virtual void UnusedResourcesAreAvailable() override; | 185 virtual void UnusedResourcesAreAvailable() override; |
185 | 186 |
186 // ui::GestureProviderClient implementation. | 187 // ui::GestureProviderClient implementation. |
187 virtual void OnGestureEvent(const ui::GestureEventData& gesture) override; | 188 virtual void OnGestureEvent(const ui::GestureEventData& gesture) override; |
188 | 189 |
189 // ui::WindowAndroidObserver implementation. | 190 // ui::WindowAndroidObserver implementation. |
190 virtual void OnCompositingDidCommit() override; | 191 virtual void OnCompositingDidCommit() override; |
191 virtual void OnAttachCompositor() override; | 192 virtual void OnAttachCompositor() override; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); | 228 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); |
228 void OnDidChangeBodyBackgroundColor(SkColor color); | 229 void OnDidChangeBodyBackgroundColor(SkColor color); |
229 void OnStartContentIntent(const GURL& content_url); | 230 void OnStartContentIntent(const GURL& content_url); |
230 void OnSetNeedsBeginFrames(bool enabled); | 231 void OnSetNeedsBeginFrames(bool enabled); |
231 void OnSmartClipDataExtracted(const base::string16& text, | 232 void OnSmartClipDataExtracted(const base::string16& text, |
232 const base::string16& html, | 233 const base::string16& html, |
233 const gfx::Rect rect); | 234 const gfx::Rect rect); |
234 | 235 |
235 bool OnTouchEvent(const ui::MotionEvent& event); | 236 bool OnTouchEvent(const ui::MotionEvent& event); |
236 bool OnTouchHandleEvent(const ui::MotionEvent& event); | 237 bool OnTouchHandleEvent(const ui::MotionEvent& event); |
237 void ResetGestureDetection(); | |
238 void SetDoubleTapSupportEnabled(bool enabled); | 238 void SetDoubleTapSupportEnabled(bool enabled); |
239 void SetMultiTouchZoomSupportEnabled(bool enabled); | 239 void SetMultiTouchZoomSupportEnabled(bool enabled); |
240 | 240 |
241 long GetNativeImeAdapter(); | 241 long GetNativeImeAdapter(); |
242 | 242 |
243 void WasResized(); | 243 void WasResized(); |
244 | 244 |
245 void GetScaledContentBitmap(float scale, | 245 void GetScaledContentBitmap(float scale, |
246 SkColorType color_type, | 246 SkColorType color_type, |
247 gfx::Rect src_subrect, | 247 gfx::Rect src_subrect, |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 gfx::Vector2dF last_scroll_offset_; | 413 gfx::Vector2dF last_scroll_offset_; |
414 | 414 |
415 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 415 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
416 | 416 |
417 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 417 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
418 }; | 418 }; |
419 | 419 |
420 } // namespace content | 420 } // namespace content |
421 | 421 |
422 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 422 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |