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

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

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 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_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_
6 #define UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 6 #define UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 14 matching lines...) Expand all
25 #include "ui/display/manager/display_manager_export.h" 25 #include "ui/display/manager/display_manager_export.h"
26 #include "ui/display/types/display_constants.h" 26 #include "ui/display/types/display_constants.h"
27 #include "ui/display/types/native_display_observer.h" 27 #include "ui/display/types/native_display_observer.h"
28 #include "ui/display/util/display_util.h" 28 #include "ui/display/util/display_util.h"
29 #include "ui/gfx/geometry/size.h" 29 #include "ui/gfx/geometry/size.h"
30 30
31 namespace gfx { 31 namespace gfx {
32 class Size; 32 class Size;
33 } 33 }
34 34
35 namespace ui { 35 namespace display {
36 struct GammaRampRGBEntry; 36 struct GammaRampRGBEntry;
37 class DisplayLayoutManager; 37 class DisplayLayoutManager;
38 class DisplayMode; 38 class DisplayMode;
39 class DisplaySnapshot; 39 class DisplaySnapshot;
40 class NativeDisplayDelegate; 40 class NativeDisplayDelegate;
41 class UpdateDisplayConfigurationTask; 41 class UpdateDisplayConfigurationTask;
42 42
43 // This class interacts directly with the system display configurator. 43 // This class interacts directly with the system display configurator.
44 class DISPLAY_MANAGER_EXPORT DisplayConfigurator 44 class DISPLAY_MANAGER_EXPORT DisplayConfigurator
45 : public NativeDisplayObserver { 45 : public NativeDisplayObserver {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }; 97 };
98 98
99 // Interface for classes that make decisions about which display state 99 // Interface for classes that make decisions about which display state
100 // should be used. 100 // should be used.
101 class StateController { 101 class StateController {
102 public: 102 public:
103 virtual ~StateController() {} 103 virtual ~StateController() {}
104 104
105 // Called when displays are detected. 105 // Called when displays are detected.
106 virtual MultipleDisplayState GetStateForDisplayIds( 106 virtual MultipleDisplayState GetStateForDisplayIds(
107 const ui::DisplayConfigurator::DisplayStateList& outputs) const = 0; 107 const DisplayConfigurator::DisplayStateList& outputs) const = 0;
108 108
109 // Queries the resolution (|size|) in pixels to select display mode for the 109 // Queries the resolution (|size|) in pixels to select display mode for the
110 // given display id. 110 // given display id.
111 virtual bool GetResolutionForDisplayId(int64_t display_id, 111 virtual bool GetResolutionForDisplayId(int64_t display_id,
112 gfx::Size* size) const = 0; 112 gfx::Size* size) const = 0;
113 }; 113 };
114 114
115 // Interface for classes that implement software based mirroring. 115 // Interface for classes that implement software based mirroring.
116 class SoftwareMirroringController { 116 class SoftwareMirroringController {
117 public: 117 public:
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // |protection_mask| is the desired protection methods, which is a bitmask 278 // |protection_mask| is the desired protection methods, which is a bitmask
279 // of the ContentProtectionMethod values. 279 // of the ContentProtectionMethod values.
280 // Returns true when the protection request has been made. 280 // Returns true when the protection request has been made.
281 void EnableContentProtection(ContentProtectionClientId client_id, 281 void EnableContentProtection(ContentProtectionClientId client_id,
282 int64_t display_id, 282 int64_t display_id,
283 uint32_t protection_mask, 283 uint32_t protection_mask,
284 const EnableProtectionCallback& callback); 284 const EnableProtectionCallback& callback);
285 285
286 // Checks the available color profiles for |display_id| and fills the result 286 // Checks the available color profiles for |display_id| and fills the result
287 // into |profiles|. 287 // into |profiles|.
288 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( 288 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
289 int64_t display_id); 289 int64_t display_id);
290 290
291 // Updates the color calibration to |new_profile|. 291 // Updates the color calibration to |new_profile|.
292 bool SetColorCalibrationProfile(int64_t display_id, 292 bool SetColorCalibrationProfile(int64_t display_id,
293 ui::ColorCalibrationProfile new_profile); 293 ColorCalibrationProfile new_profile);
294 294
295 // Enables/disables virtual display. 295 // Enables/disables virtual display.
296 int64_t AddVirtualDisplay(const gfx::Size& display_size); 296 int64_t AddVirtualDisplay(const gfx::Size& display_size);
297 bool RemoveVirtualDisplay(int64_t display_id); 297 bool RemoveVirtualDisplay(int64_t display_id);
298 298
299 // Returns true if there is at least one display on. 299 // Returns true if there is at least one display on.
300 bool IsDisplayOn() const; 300 bool IsDisplayOn() const;
301 301
302 // Sets the gamma, degamma and correction matrix for |display_id| to the 302 // Sets the gamma, degamma and correction matrix for |display_id| to the
303 // values in |degamma_lut|, |gamma_lut| and |correction_matrix|. 303 // values in |degamma_lut|, |gamma_lut| and |correction_matrix|.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 std::unique_ptr<DisplayLayoutManager> layout_manager_; 481 std::unique_ptr<DisplayLayoutManager> layout_manager_;
482 482
483 std::unique_ptr<UpdateDisplayConfigurationTask> configuration_task_; 483 std::unique_ptr<UpdateDisplayConfigurationTask> configuration_task_;
484 484
485 // This must be the last variable. 485 // This must be the last variable.
486 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 486 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
487 487
488 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 488 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
489 }; 489 };
490 490
491 } // namespace ui 491 } // namespace display
492 492
493 #endif // UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 493 #endif // UI_DISPLAY_MANAGER_CHROMEOS_DISPLAY_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « ui/display/manager/chromeos/display_change_observer_unittest.cc ('k') | ui/display/manager/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698