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

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

Issue 1409833004: Add DeviceDisplayInfo getter in WindowAndroid. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some minor/comment/nits changes for sky@ and boliu@. Created 4 years, 9 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 void UpdateBackgroundColor(SkColor color); 285 void UpdateBackgroundColor(SkColor color);
286 286
287 // Called after async screenshot task completes. Scales and crops the result 287 // Called after async screenshot task completes. Scales and crops the result
288 // of the copy. 288 // of the copy.
289 static void PrepareTextureCopyOutputResult( 289 static void PrepareTextureCopyOutputResult(
290 const gfx::Size& dst_size_in_pixel, 290 const gfx::Size& dst_size_in_pixel,
291 SkColorType color_type, 291 SkColorType color_type,
292 const base::TimeTicks& start_time, 292 const base::TimeTicks& start_time,
293 const ReadbackRequestCallback& callback, 293 const ReadbackRequestCallback& callback,
294 size_t display_area,
294 scoped_ptr<cc::CopyOutputResult> result); 295 scoped_ptr<cc::CopyOutputResult> result);
295 static void PrepareTextureCopyOutputResultForDelegatedReadback( 296 static void PrepareTextureCopyOutputResultForDelegatedReadback(
296 const gfx::Size& dst_size_in_pixel, 297 const gfx::Size& dst_size_in_pixel,
297 SkColorType color_type, 298 SkColorType color_type,
298 const base::TimeTicks& start_time, 299 const base::TimeTicks& start_time,
299 scoped_refptr<cc::Layer> readback_layer, 300 scoped_refptr<cc::Layer> readback_layer,
300 const ReadbackRequestCallback& callback, 301 const ReadbackRequestCallback& callback,
302 size_t display_area,
301 scoped_ptr<cc::CopyOutputResult> result); 303 scoped_ptr<cc::CopyOutputResult> result);
302 304
303 // DevTools ScreenCast support for Android WebView. 305 // DevTools ScreenCast support for Android WebView.
304 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, 306 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel,
305 const gfx::Size& dst_size_in_pixel, 307 const gfx::Size& dst_size_in_pixel,
306 const ReadbackRequestCallback& callback, 308 const ReadbackRequestCallback& callback,
307 const SkColorType color_type); 309 const SkColorType color_type);
308 310
309 // If we have locks on a frame during a ContentViewCore swap or a context 311 // If we have locks on a frame during a ContentViewCore swap or a context
310 // lost, the frame is no longer valid and we can safely release all the locks. 312 // lost, the frame is no longer valid and we can safely release all the locks.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 gfx::Vector2dF last_scroll_offset_; 418 gfx::Vector2dF last_scroll_offset_;
417 419
418 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 420 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
419 421
420 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 422 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
421 }; 423 };
422 424
423 } // namespace content 425 } // namespace content
424 426
425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 427 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698