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

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

Issue 923273003: Update diplays even if configuration failed during startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 class Observer { 59 class Observer {
60 public: 60 public:
61 virtual ~Observer() {} 61 virtual ~Observer() {}
62 62
63 // Called after the display mode has been changed. |display| contains the 63 // Called after the display mode has been changed. |display| contains the
64 // just-applied configuration. Note that the X server is no longer grabbed 64 // just-applied configuration. Note that the X server is no longer grabbed
65 // when this method is called, so the actual configuration could've changed 65 // when this method is called, so the actual configuration could've changed
66 // already. 66 // already.
67 virtual void OnDisplayModeChanged( 67 virtual void OnDisplayModeChanged(
68 const std::vector<DisplayState>& displays) {} 68 const DisplayStateList& displays) {}
69 69
70 // Called after a display mode change attempt failed. |failed_new_state| is 70 // Called after a display mode change attempt failed. |displays| contains
71 // the new state which the system failed to enter. 71 // displays that are deteced when faield.
dnicoara 2015/02/23 17:08:25 s/deteced/detected/ s/faield/failed/
oshima 2015/02/23 17:58:29 Done.
72 // |failed_new_state| is the new state which the system failed to enter.
72 virtual void OnDisplayModeChangeFailed( 73 virtual void OnDisplayModeChangeFailed(
74 const DisplayStateList& displays,
73 MultipleDisplayState failed_new_state) {} 75 MultipleDisplayState failed_new_state) {}
74 }; 76 };
75 77
76 // Interface for classes that make decisions about which display state 78 // Interface for classes that make decisions about which display state
77 // should be used. 79 // should be used.
78 class StateController { 80 class StateController {
79 public: 81 public:
80 virtual ~StateController() {} 82 virtual ~StateController() {}
81 83
82 // Called when displays are detected. 84 // Called when displays are detected.
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 425
424 // This must be the last variable. 426 // This must be the last variable.
425 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 427 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
426 428
427 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 429 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
428 }; 430 };
429 431
430 } // namespace ui 432 } // namespace ui
431 433
432 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 434 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « ash/display/display_error_observer_chromeos.cc ('k') | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698