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

Side by Side Diff: ui/display/chromeos/display_configurator.h

Issue 2152883002: ui: Pass display size by const reference in AddVirtualDisplay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | ui/display/chromeos/display_configurator.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // Checks the available color profiles for |display_id| and fills the result 269 // Checks the available color profiles for |display_id| and fills the result
270 // into |profiles|. 270 // into |profiles|.
271 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 271 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
272 int64_t display_id); 272 int64_t display_id);
273 273
274 // Updates the color calibration to |new_profile|. 274 // Updates the color calibration to |new_profile|.
275 bool SetColorCalibrationProfile(int64_t display_id, 275 bool SetColorCalibrationProfile(int64_t display_id,
276 ui::ColorCalibrationProfile new_profile); 276 ui::ColorCalibrationProfile new_profile);
277 277
278 // Enables/disables virtual display. 278 // Enables/disables virtual display.
279 int64_t AddVirtualDisplay(gfx::Size display_size); 279 int64_t AddVirtualDisplay(const gfx::Size& display_size);
280 bool RemoveVirtualDisplay(int64_t display_id); 280 bool RemoveVirtualDisplay(int64_t display_id);
281 281
282 // Returns true if there is at least one display on. 282 // Returns true if there is at least one display on.
283 bool IsDisplayOn() const; 283 bool IsDisplayOn() const;
284 284
285 void set_configure_display(bool configure_display) { 285 void set_configure_display(bool configure_display) {
286 configure_display_ = configure_display; 286 configure_display_ = configure_display;
287 } 287 }
288 288
289 // Sets the gamma, degamma and correction matrix for |display_id| to the 289 // Sets the gamma, degamma and correction matrix for |display_id| to the
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 464
465 // This must be the last variable. 465 // This must be the last variable.
466 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 466 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
467 467
468 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 468 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
469 }; 469 };
470 470
471 } // namespace ui 471 } // namespace ui
472 472
473 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 473 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698