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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 bool OnTouchEvent(const ui::MotionEvent& event); | 202 bool OnTouchEvent(const ui::MotionEvent& event); |
203 void ResetGestureDetection(); | 203 void ResetGestureDetection(); |
204 void SetDoubleTapSupportEnabled(bool enabled); | 204 void SetDoubleTapSupportEnabled(bool enabled); |
205 void SetMultiTouchZoomSupportEnabled(bool enabled); | 205 void SetMultiTouchZoomSupportEnabled(bool enabled); |
206 | 206 |
207 long GetNativeImeAdapter(); | 207 long GetNativeImeAdapter(); |
208 | 208 |
209 void WasResized(); | 209 void WasResized(); |
210 | 210 |
| 211 // Asynchronously retrieves a bitmap of the content. |src_subrect| is in |
| 212 // phyiscal pixel space before applying |scale|. |
211 void GetScaledContentBitmap( | 213 void GetScaledContentBitmap( |
212 float scale, | 214 float scale, |
213 SkBitmap::Config bitmap_config, | 215 SkBitmap::Config bitmap_config, |
214 gfx::Rect src_subrect, | 216 gfx::Rect src_subrect, |
215 const base::Callback<void(bool, const SkBitmap&)>& result_callback); | 217 const base::Callback<void(bool, const SkBitmap&)>& result_callback); |
216 | 218 |
217 bool HasValidFrame() const; | 219 bool HasValidFrame() const; |
218 | 220 |
219 void MoveCaret(const gfx::Point& point); | 221 void MoveCaret(const gfx::Point& point); |
220 | 222 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 }; | 353 }; |
352 | 354 |
353 scoped_ptr<LastFrameInfo> last_frame_info_; | 355 scoped_ptr<LastFrameInfo> last_frame_info_; |
354 | 356 |
355 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
356 }; | 358 }; |
357 | 359 |
358 } // namespace content | 360 } // namespace content |
359 | 361 |
360 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 362 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |