OLD | NEW |
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 #include "ui/display/chromeos/display_configurator.h" | 5 #include "ui/display/chromeos/display_configurator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 } | 1001 } |
1002 | 1002 |
1003 void DisplayConfigurator::NotifyObservers( | 1003 void DisplayConfigurator::NotifyObservers( |
1004 bool success, | 1004 bool success, |
1005 MultipleDisplayState attempted_state) { | 1005 MultipleDisplayState attempted_state) { |
1006 if (success) { | 1006 if (success) { |
1007 FOR_EACH_OBSERVER( | 1007 FOR_EACH_OBSERVER( |
1008 Observer, observers_, OnDisplayModeChanged(cached_displays_)); | 1008 Observer, observers_, OnDisplayModeChanged(cached_displays_)); |
1009 } else { | 1009 } else { |
1010 FOR_EACH_OBSERVER( | 1010 FOR_EACH_OBSERVER( |
1011 Observer, observers_, OnDisplayModeChangeFailed(attempted_state)); | 1011 Observer, observers_, OnDisplayModeChangeFailed(cached_displays_, |
| 1012 attempted_state)); |
1012 } | 1013 } |
1013 } | 1014 } |
1014 | 1015 |
1015 } // namespace ui | 1016 } // namespace ui |
OLD | NEW |