| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "ash/display/display_change_observer_chromeos.h" | 5 #include "ash/display/display_change_observer_chromeos.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "ash/ash_switches.h" | 12 #include "ash/ash_switches.h" |
| 13 #include "ash/display/display_info.h" | 13 #include "ash/display/display_info.h" |
| 14 #include "ash/display/display_layout_store.h" | 14 #include "ash/display/display_layout_store.h" |
| 15 #include "ash/display/display_manager.h" | 15 #include "ash/display/display_manager.h" |
| 16 #include "ash/shell.h" | 16 #include "ash/shell.h" |
| 17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "grit/ash_strings.h" | 19 #include "grit/ash_strings.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/compositor/dip_util.h" | 21 #include "ui/compositor/dip_util.h" |
| 22 #include "ui/display/chromeos/display_mode.h" | |
| 23 #include "ui/display/chromeos/display_snapshot.h" | |
| 24 #include "ui/display/display_util.h" | 22 #include "ui/display/display_util.h" |
| 23 #include "ui/display/types/chromeos/display_mode.h" |
| 24 #include "ui/display/types/chromeos/display_snapshot.h" |
| 25 #include "ui/gfx/display.h" | 25 #include "ui/gfx/display.h" |
| 26 | 26 |
| 27 namespace ash { | 27 namespace ash { |
| 28 | 28 |
| 29 using ui::DisplayConfigurator; | 29 using ui::DisplayConfigurator; |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // Display mode list is sorted by (in descending priority): | 33 // Display mode list is sorted by (in descending priority): |
| 34 // * the area in pixels. | 34 // * the area in pixels. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 void DisplayChangeObserver::OnAppTerminating() { | 165 void DisplayChangeObserver::OnAppTerminating() { |
| 166 #if defined(USE_ASH) | 166 #if defined(USE_ASH) |
| 167 // Stop handling display configuration events once the shutdown | 167 // Stop handling display configuration events once the shutdown |
| 168 // process starts. crbug.com/177014. | 168 // process starts. crbug.com/177014. |
| 169 Shell::GetInstance()->display_configurator()->PrepareForExit(); | 169 Shell::GetInstance()->display_configurator()->PrepareForExit(); |
| 170 #endif | 170 #endif |
| 171 } | 171 } |
| 172 | 172 |
| 173 } // namespace ash | 173 } // namespace ash |
| OLD | NEW |