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

Side by Side Diff: ash/display/display_change_observer_chromeos.cc

Issue 230763004: Split ui/display types into separate module and have Ozone depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | ash/display/display_change_observer_chromeos_unittest.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 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
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
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/display/display_change_observer_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698