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

Side by Side Diff: content/browser/devtools/protocol/emulation_handler.h

Issue 2808123004: [devtools] Remove device emulation background color override. (Closed)
Patch Set: . Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/devtools/protocol/devtools_domain_handler.h" 9 #include "content/browser/devtools/protocol/devtools_domain_handler.h"
10 #include "content/browser/devtools/protocol/emulation.h" 10 #include "content/browser/devtools/protocol/emulation.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 double device_scale_factor, 42 double device_scale_factor,
43 bool mobile, 43 bool mobile,
44 bool fit_window, 44 bool fit_window,
45 Maybe<double> scale, 45 Maybe<double> scale,
46 Maybe<double> offset_x, 46 Maybe<double> offset_x,
47 Maybe<double> offset_y, 47 Maybe<double> offset_y,
48 Maybe<int> screen_widget, 48 Maybe<int> screen_widget,
49 Maybe<int> screen_height, 49 Maybe<int> screen_height,
50 Maybe<int> position_x, 50 Maybe<int> position_x,
51 Maybe<int> position_y, 51 Maybe<int> position_y,
52 Maybe<Emulation::ScreenOrientation> screen_orientation) override; 52 Maybe<Emulation::ScreenOrientation> screen_orientation,
53 Maybe<bool> override_gutter_color) override;
53 Response ClearDeviceMetricsOverride() override; 54 Response ClearDeviceMetricsOverride() override;
54 55
55 Response SetVisibleSize(int width, int height) override; 56 Response SetVisibleSize(int width, int height) override;
56 57
57 private: 58 private:
58 WebContentsImpl* GetWebContents(); 59 WebContentsImpl* GetWebContents();
59 void UpdateTouchEventEmulationState(); 60 void UpdateTouchEventEmulationState();
60 void UpdateDeviceEmulationState(); 61 void UpdateDeviceEmulationState();
61 62
62 bool touch_emulation_enabled_; 63 bool touch_emulation_enabled_;
63 std::string touch_emulation_configuration_; 64 std::string touch_emulation_configuration_;
64 65
65 bool device_emulation_enabled_; 66 bool device_emulation_enabled_;
66 blink::WebDeviceEmulationParams device_emulation_params_; 67 blink::WebDeviceEmulationParams device_emulation_params_;
67 68
68 RenderFrameHostImpl* host_; 69 RenderFrameHostImpl* host_;
69 70
70 DISALLOW_COPY_AND_ASSIGN(EmulationHandler); 71 DISALLOW_COPY_AND_ASSIGN(EmulationHandler);
71 }; 72 };
72 73
73 } // namespace protocol 74 } // namespace protocol
74 } // namespace content 75 } // namespace content
75 76
76 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_ 77 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698