| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 void LockResources(); | 220 void LockResources(); |
| 221 void UnlockResources(); | 221 void UnlockResources(); |
| 222 | 222 |
| 223 int GetNativeImeAdapter(); | 223 int GetNativeImeAdapter(); |
| 224 | 224 |
| 225 void WasResized(); | 225 void WasResized(); |
| 226 | 226 |
| 227 void GetScaledContentBitmap( | 227 void GetScaledContentBitmap( |
| 228 float scale, | 228 float scale, |
| 229 gfx::Size* out_size, | 229 gfx::Size* out_size, |
| 230 bool config_565, |
| 230 const base::Callback<void(bool, const SkBitmap&)>& result_callback); | 231 const base::Callback<void(bool, const SkBitmap&)>& result_callback); |
| 231 bool PopulateBitmapWithContents(jobject jbitmap); | 232 bool PopulateBitmapWithContents(jobject jbitmap); |
| 232 | 233 |
| 233 bool HasValidFrame() const; | 234 bool HasValidFrame() const; |
| 234 | 235 |
| 235 // Select all text between the given coordinates. | 236 // Select all text between the given coordinates. |
| 236 void SelectRange(const gfx::Point& start, const gfx::Point& end); | 237 void SelectRange(const gfx::Point& start, const gfx::Point& end); |
| 237 | 238 |
| 238 void MoveCaret(const gfx::Point& point); | 239 void MoveCaret(const gfx::Point& point); |
| 239 | 240 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // Called after async screenshot task completes. Scales and crops the result | 277 // Called after async screenshot task completes. Scales and crops the result |
| 277 // of the copy. | 278 // of the copy. |
| 278 static void PrepareTextureCopyOutputResult( | 279 static void PrepareTextureCopyOutputResult( |
| 279 const gfx::Size& dst_size_in_pixel, | 280 const gfx::Size& dst_size_in_pixel, |
| 280 const SkBitmap::Config config, | 281 const SkBitmap::Config config, |
| 281 const base::TimeTicks& start_time, | 282 const base::TimeTicks& start_time, |
| 282 const base::Callback<void(bool, const SkBitmap&)>& callback, | 283 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 283 scoped_ptr<cc::CopyOutputResult> result); | 284 scoped_ptr<cc::CopyOutputResult> result); |
| 284 static void PrepareBitmapCopyOutputResult( | 285 static void PrepareBitmapCopyOutputResult( |
| 285 const gfx::Size& dst_size_in_pixel, | 286 const gfx::Size& dst_size_in_pixel, |
| 287 const SkBitmap::Config config, |
| 286 const base::TimeTicks& start_time, | 288 const base::TimeTicks& start_time, |
| 287 const base::Callback<void(bool, const SkBitmap&)>& callback, | 289 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 288 scoped_ptr<cc::CopyOutputResult> result); | 290 scoped_ptr<cc::CopyOutputResult> result); |
| 289 | 291 |
| 290 // DevTools ScreenCast support for Android WebView. | 292 // DevTools ScreenCast support for Android WebView. |
| 291 void SynchronousCopyContents( | 293 void SynchronousCopyContents( |
| 292 const gfx::Rect& src_subrect_in_pixel, | 294 const gfx::Rect& src_subrect_in_pixel, |
| 293 const gfx::Size& dst_size_in_pixel, | 295 const gfx::Size& dst_size_in_pixel, |
| 294 const base::Callback<void(bool, const SkBitmap&)>& callback); | 296 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 297 const SkBitmap::Config config); |
| 295 | 298 |
| 296 // The model object. | 299 // The model object. |
| 297 RenderWidgetHostImpl* host_; | 300 RenderWidgetHostImpl* host_; |
| 298 | 301 |
| 299 // Used to track whether this render widget needs a BeginFrame. | 302 // Used to track whether this render widget needs a BeginFrame. |
| 300 bool needs_begin_frame_; | 303 bool needs_begin_frame_; |
| 301 | 304 |
| 302 bool is_showing_; | 305 bool is_showing_; |
| 303 | 306 |
| 304 // ContentViewCoreImpl is our interface to the view system. | 307 // ContentViewCoreImpl is our interface to the view system. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 const bool using_synchronous_compositor_; | 358 const bool using_synchronous_compositor_; |
| 356 | 359 |
| 357 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; | 360 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; |
| 358 | 361 |
| 359 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 362 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 360 }; | 363 }; |
| 361 | 364 |
| 362 } // namespace content | 365 } // namespace content |
| 363 | 366 |
| 364 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 367 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |