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

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

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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
« no previous file with comments | « ash/dip_unittest.cc ('k') | ash/display/display_change_observer_chromeos.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 #ifndef ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ 5 #ifndef ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_
6 #define ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ 6 #define ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/common/display/display_info.h"
14 #include "ash/common/shell_observer.h" 13 #include "ash/common/shell_observer.h"
15 #include "base/macros.h" 14 #include "base/macros.h"
16 #include "ui/display/chromeos/display_configurator.h" 15 #include "ui/display/chromeos/display_configurator.h"
16 #include "ui/display/manager/managed_display_info.h"
17 #include "ui/events/devices/input_device_event_observer.h" 17 #include "ui/events/devices/input_device_event_observer.h"
18 18
19 namespace ash { 19 namespace ash {
20 20
21 class DisplayMode; 21 class DisplayMode;
22 class DisplaySnapshot; 22 class DisplaySnapshot;
23 23
24 // An object that observes changes in display configuration and 24 // An object that observes changes in display configuration and
25 // update DisplayManagers. 25 // update DisplayManagers.
26 class DisplayChangeObserver : public ui::DisplayConfigurator::StateController, 26 class DisplayChangeObserver : public ui::DisplayConfigurator::StateController,
27 public ui::DisplayConfigurator::Observer, 27 public ui::DisplayConfigurator::Observer,
28 public ui::InputDeviceEventObserver, 28 public ui::InputDeviceEventObserver,
29 public ShellObserver { 29 public ShellObserver {
30 public: 30 public:
31 // Returns the mode list for internal display. 31 // Returns the mode list for internal display.
32 ASH_EXPORT static DisplayInfo::ManagedDisplayModeList 32 ASH_EXPORT static display::ManagedDisplayInfo::ManagedDisplayModeList
33 GetInternalManagedDisplayModeList(const DisplayInfo& display_info, 33 GetInternalManagedDisplayModeList(
34 const ui::DisplaySnapshot& output); 34 const display::ManagedDisplayInfo& display_info,
35 const ui::DisplaySnapshot& output);
35 36
36 // Returns the resolution list. 37 // Returns the resolution list.
37 ASH_EXPORT static DisplayInfo::ManagedDisplayModeList 38 ASH_EXPORT static display::ManagedDisplayInfo::ManagedDisplayModeList
38 GetExternalManagedDisplayModeList(const ui::DisplaySnapshot& output); 39 GetExternalManagedDisplayModeList(const ui::DisplaySnapshot& output);
39 40
40 DisplayChangeObserver(); 41 DisplayChangeObserver();
41 ~DisplayChangeObserver() override; 42 ~DisplayChangeObserver() override;
42 43
43 // ui::DisplayConfigurator::StateController overrides: 44 // ui::DisplayConfigurator::StateController overrides:
44 ui::MultipleDisplayState GetStateForDisplayIds( 45 ui::MultipleDisplayState GetStateForDisplayIds(
45 const ui::DisplayConfigurator::DisplayStateList& outputs) const override; 46 const ui::DisplayConfigurator::DisplayStateList& outputs) const override;
46 bool GetResolutionForDisplayId(int64_t display_id, 47 bool GetResolutionForDisplayId(int64_t display_id,
47 gfx::Size* size) const override; 48 gfx::Size* size) const override;
(...skipping 14 matching lines...) Expand all
62 // Exposed for testing. 63 // Exposed for testing.
63 ASH_EXPORT static float FindDeviceScaleFactor(float dpi); 64 ASH_EXPORT static float FindDeviceScaleFactor(float dpi);
64 65
65 private: 66 private:
66 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); 67 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver);
67 }; 68 };
68 69
69 } // namespace ash 70 } // namespace ash
70 71
71 #endif // ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_ 72 #endif // ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/dip_unittest.cc ('k') | ash/display/display_change_observer_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698