OLD | NEW |
---|---|
(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 } | |
OLD | NEW |