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

Side by Side Diff: ash/display/display_info.h

Issue 280833002: Re-land "Issue 191223007: Move touch CTM from X into Chrome" (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: adding missing file again 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
« no previous file with comments | « ash/display/display_change_observer_chromeos.cc ('k') | ash/display/display_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ASH_DISPLAY_DISPLAY_INFO_H_ 5 #ifndef ASH_DISPLAY_DISPLAY_INFO_H_
6 #define ASH_DISPLAY_DISPLAY_INFO_H_ 6 #define ASH_DISPLAY_DISPLAY_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool has_overscan() const { return has_overscan_; } 96 bool has_overscan() const { return has_overscan_; }
97 97
98 void set_rotation(gfx::Display::Rotation rotation) { rotation_ = rotation; } 98 void set_rotation(gfx::Display::Rotation rotation) { rotation_ = rotation; }
99 gfx::Display::Rotation rotation() const { return rotation_; } 99 gfx::Display::Rotation rotation() const { return rotation_; }
100 100
101 void set_touch_support(gfx::Display::TouchSupport support) { 101 void set_touch_support(gfx::Display::TouchSupport support) {
102 touch_support_ = support; 102 touch_support_ = support;
103 } 103 }
104 gfx::Display::TouchSupport touch_support() const { return touch_support_; } 104 gfx::Display::TouchSupport touch_support() const { return touch_support_; }
105 105
106 void set_touch_device_id(int id) { touch_device_id_ = id; }
107 int touch_device_id() const { return touch_device_id_; }
108
106 // Gets/Sets the device scale factor of the display. 109 // Gets/Sets the device scale factor of the display.
107 float device_scale_factor() const { return device_scale_factor_; } 110 float device_scale_factor() const { return device_scale_factor_; }
108 void set_device_scale_factor(float scale) { device_scale_factor_ = scale; } 111 void set_device_scale_factor(float scale) { device_scale_factor_ = scale; }
109 112
110 // The native bounds for the display. The size of this can be 113 // The native bounds for the display. The size of this can be
111 // different from the |size_in_pixel| when overscan insets are set 114 // different from the |size_in_pixel| when overscan insets are set
112 // and/or |configured_ui_scale_| is set. 115 // and/or |configured_ui_scale_| is set.
113 const gfx::Rect& bounds_in_native() const { 116 const gfx::Rect& bounds_in_native() const {
114 return bounds_in_native_; 117 return bounds_in_native_;
115 } 118 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // modes. 197 // modes.
195 std::string ToFullString() const; 198 std::string ToFullString() const;
196 199
197 private: 200 private:
198 int64 id_; 201 int64 id_;
199 std::string name_; 202 std::string name_;
200 bool has_overscan_; 203 bool has_overscan_;
201 gfx::Display::Rotation rotation_; 204 gfx::Display::Rotation rotation_;
202 gfx::Display::TouchSupport touch_support_; 205 gfx::Display::TouchSupport touch_support_;
203 206
207 // If the display is also a touch device, it will have a positive
208 // |touch_device_id_|. Otherwise |touch_device_id_| is 0.
209 int touch_device_id_;
210
204 // This specifies the device's pixel density. (For example, a 211 // This specifies the device's pixel density. (For example, a
205 // display whose DPI is higher than the threshold is considered to have 212 // display whose DPI is higher than the threshold is considered to have
206 // device_scale_factor = 2.0 on Chrome OS). This is used by the 213 // device_scale_factor = 2.0 on Chrome OS). This is used by the
207 // grapics layer to choose and draw appropriate images and scale 214 // grapics layer to choose and draw appropriate images and scale
208 // layers properly. 215 // layers properly.
209 float device_scale_factor_; 216 float device_scale_factor_;
210 gfx::Rect bounds_in_native_; 217 gfx::Rect bounds_in_native_;
211 218
212 // The size of the display in use. The size can be different from the size 219 // The size of the display in use. The size can be different from the size
213 // of |bounds_in_native_| if the display has overscan insets and/or rotation. 220 // of |bounds_in_native_| if the display has overscan insets and/or rotation.
(...skipping 17 matching lines...) Expand all
231 // The current profile of the color calibration. 238 // The current profile of the color calibration.
232 ui::ColorCalibrationProfile color_profile_; 239 ui::ColorCalibrationProfile color_profile_;
233 240
234 // The list of available variations for the color calibration. 241 // The list of available variations for the color calibration.
235 std::vector<ui::ColorCalibrationProfile> available_color_profiles_; 242 std::vector<ui::ColorCalibrationProfile> available_color_profiles_;
236 }; 243 };
237 244
238 } // namespace ash 245 } // namespace ash
239 246
240 #endif // ASH_DISPLAY_DISPLAY_INFO_H_ 247 #endif // ASH_DISPLAY_DISPLAY_INFO_H_
OLDNEW
« no previous file with comments | « ash/display/display_change_observer_chromeos.cc ('k') | ash/display/display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698