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

Side by Side Diff: content/renderer/devtools/render_widget_screen_metrics_emulator.h

Issue 2317563004: Change blink::WebScreenInfo to content::ScreenInfo (Closed)
Patch Set: Fix Windows compile Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RENDERER_DEVTOOLS_RENDER_WIDGET_SCREEN_METRICS_EMULATOR_H_ 5 #ifndef CONTENT_RENDERER_DEVTOOLS_RENDER_WIDGET_SCREEN_METRICS_EMULATOR_H_
6 #define CONTENT_RENDERER_DEVTOOLS_RENDER_WIDGET_SCREEN_METRICS_EMULATOR_H_ 6 #define CONTENT_RENDERER_DEVTOOLS_RENDER_WIDGET_SCREEN_METRICS_EMULATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/common/resize_params.h" 10 #include "content/common/resize_params.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // Scale and offset used to convert between host coordinates 37 // Scale and offset used to convert between host coordinates
38 // and webwidget coordinates. 38 // and webwidget coordinates.
39 const gfx::Size& original_size() const { 39 const gfx::Size& original_size() const {
40 return original_resize_params_.new_size; 40 return original_resize_params_.new_size;
41 } 41 }
42 42
43 float scale() const { return scale_; } 43 float scale() const { return scale_; }
44 const gfx::PointF& offset() const { return offset_; } 44 const gfx::PointF& offset() const { return offset_; }
45 const gfx::Rect& applied_widget_rect() const { return applied_widget_rect_; } 45 const gfx::Rect& applied_widget_rect() const { return applied_widget_rect_; }
46 const blink::WebScreenInfo& original_screen_info() const { 46 const ScreenInfo& original_screen_info() const {
47 return original_resize_params_.screen_info; 47 return original_resize_params_.screen_info;
48 } 48 }
49 const gfx::Rect& original_screen_rect() const { 49 const gfx::Rect& original_screen_rect() const {
50 return original_view_screen_rect_; 50 return original_view_screen_rect_;
51 } 51 }
52 52
53 void ChangeEmulationParams(const blink::WebDeviceEmulationParams& params); 53 void ChangeEmulationParams(const blink::WebDeviceEmulationParams& params);
54 54
55 // The following methods alter handlers' behavior for messages related to 55 // The following methods alter handlers' behavior for messages related to
56 // widget size and position. 56 // widget size and position.
(...skipping 24 matching lines...) Expand all
81 ResizeParams original_resize_params_; 81 ResizeParams original_resize_params_;
82 gfx::Rect original_view_screen_rect_; 82 gfx::Rect original_view_screen_rect_;
83 gfx::Rect original_window_screen_rect_; 83 gfx::Rect original_window_screen_rect_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(RenderWidgetScreenMetricsEmulator); 85 DISALLOW_COPY_AND_ASSIGN(RenderWidgetScreenMetricsEmulator);
86 }; 86 };
87 87
88 } // namespace content 88 } // namespace content
89 89
90 #endif // CONTENT_RENDERER_DEVTOOLS_RENDER_WIDGET_SCREEN_METRICS_EMULATOR_H_ 90 #endif // CONTENT_RENDERER_DEVTOOLS_RENDER_WIDGET_SCREEN_METRICS_EMULATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698