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

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: Created 5 years, 2 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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 void UpdateBackgroundColor(SkColor color); 280 void UpdateBackgroundColor(SkColor color);
281 281
282 // Called after async screenshot task completes. Scales and crops the result 282 // Called after async screenshot task completes. Scales and crops the result
283 // of the copy. 283 // of the copy.
284 static void PrepareTextureCopyOutputResult( 284 static void PrepareTextureCopyOutputResult(
285 const gfx::Size& dst_size_in_pixel, 285 const gfx::Size& dst_size_in_pixel,
286 SkColorType color_type, 286 SkColorType color_type,
287 const base::TimeTicks& start_time, 287 const base::TimeTicks& start_time,
288 const ReadbackRequestCallback& callback, 288 const ReadbackRequestCallback& callback,
289 gfx::NativeWindow nativeWindow,
jdduke (slow) 2015/10/21 17:18:25 nativeWindow should be native_window here and thro
gsennton 2015/10/22 11:17:27 Done.
289 scoped_ptr<cc::CopyOutputResult> result); 290 scoped_ptr<cc::CopyOutputResult> result);
290 static void PrepareTextureCopyOutputResultForDelegatedReadback( 291 static void PrepareTextureCopyOutputResultForDelegatedReadback(
291 const gfx::Size& dst_size_in_pixel, 292 const gfx::Size& dst_size_in_pixel,
292 SkColorType color_type, 293 SkColorType color_type,
293 const base::TimeTicks& start_time, 294 const base::TimeTicks& start_time,
294 scoped_refptr<cc::Layer> readback_layer, 295 scoped_refptr<cc::Layer> readback_layer,
295 const ReadbackRequestCallback& callback, 296 const ReadbackRequestCallback& callback,
297 gfx::NativeWindow nativeWindow,
296 scoped_ptr<cc::CopyOutputResult> result); 298 scoped_ptr<cc::CopyOutputResult> result);
297 299
298 // DevTools ScreenCast support for Android WebView. 300 // DevTools ScreenCast support for Android WebView.
299 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, 301 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel,
300 const gfx::Size& dst_size_in_pixel, 302 const gfx::Size& dst_size_in_pixel,
301 const ReadbackRequestCallback& callback, 303 const ReadbackRequestCallback& callback,
302 const SkColorType color_type); 304 const SkColorType color_type);
303 305
304 // If we have locks on a frame during a ContentViewCore swap or a context 306 // If we have locks on a frame during a ContentViewCore swap or a context
305 // lost, the frame is no longer valid and we can safely release all the locks. 307 // lost, the frame is no longer valid and we can safely release all the locks.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 gfx::Vector2dF last_scroll_offset_; 420 gfx::Vector2dF last_scroll_offset_;
419 421
420 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 422 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
421 423
422 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 424 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
423 }; 425 };
424 426
425 } // namespace content 427 } // namespace content
426 428
427 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698