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

Side by Side Diff: chrome/test/chromedriver/chrome/device_metrics.cc

Issue 251933005: [ChromeDriver] Support mobile emulation on desktop Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/test/chromedriver/chrome/device_metrics.h"
6
7 DeviceMetrics::DeviceMetrics() : width(-1) {}
8
9 DeviceMetrics::DeviceMetrics(int width, int height, double device_scale_factor)
10 : width(width),
11 height(height),
stgao 2014/05/14 05:10:14 indent
sam.rawlins 2014/05/16 21:09:38 Done.
12 device_scale_factor(device_scale_factor),
13 emulate_viewport(false),
14 fit_window(true),
15 text_autosizing(true),
16 font_scale_factor(1) {}
17
18 DeviceMetrics::~DeviceMetrics() {}
19
20 bool DeviceMetrics::IsValid() const {
21 return width > 0;
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698