summaryrefslogtreecommitdiffstats
path: root/ash/shell.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-14 10:10:58 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-14 10:10:58 +0000
commit6bdf795e8f7dcfe80dd33b06bab229fd8a4d49f9 (patch)
tree842af6ec5fd894feb6b1d6cad3c38c4682966c57 /ash/shell.h
parent647aeccd73b8598e1373987d34e7f16a6d5b39b7 (diff)
downloadchromium_src-6bdf795e8f7dcfe80dd33b06bab229fd8a4d49f9.zip
chromium_src-6bdf795e8f7dcfe80dd33b06bab229fd8a4d49f9.tar.gz
chromium_src-6bdf795e8f7dcfe80dd33b06bab229fd8a4d49f9.tar.bz2
- Move DisplayManager and DisplayChangeObserverX11 from aura
to ash.DisplayManager/DisplayChangeObserverX11 are in aura for historical reason, but they no longer have to be in aura. * Remove SingleDisplayManager as it's no longer necessary. * Rename MultipleDisplayManager and consolidate into DisplayManager. * Remove DisplayManager from desktop environment. Screen information is managed by platform in desktop environment, and should be provided via gfx::Screen implementation. - Move DisplayObserver to ui/gfx. This should be consolicated with other similar features such as WorkAreaWatcherObserver/ DisplaySettingsProvider. It's tracked in crbug.com/122863. - Misc cleanups * Test should use test_support_ash instead of including individual files. * Use TestScreen where appropriate. BUG=159710, 122863 TEST=none Review URL: https://chromiumcodereview.appspot.com/11363124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r--ash/shell.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ash/shell.h b/ash/shell.h
index 72073dc..38fd7e7 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -87,6 +87,8 @@ class AcceleratorFilter;
class ActivationController;
class AppListController;
class CaptureController;
+class DisplayChangeObserverX11;
+class DisplayManager;
class DragDropController;
class EventClientImpl;
class EventRewriterEventFilter;
@@ -263,6 +265,9 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate,
}
#endif // !defined(OS_MACOSX)
+ internal::DisplayManager* display_manager() {
+ return display_manager_.get();
+ }
views::corewm::CompoundEventFilter* env_filter() {
return env_filter_.get();
}
@@ -322,7 +327,7 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate,
return magnification_controller_.get();
}
- const ScreenAsh* screen() { return screen_; }
+ ScreenAsh* screen() { return screen_; }
// Force the shelf to query for it's current visibility state.
void UpdateShelfVisibility();
@@ -519,11 +524,16 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate,
// a heads-up display. This is enabled only if --ash-touch-hud flag is used.
scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_;
+ scoped_ptr<internal::DisplayManager> display_manager_;
+
#if defined(OS_CHROMEOS)
// Controls video output device state.
scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
scoped_ptr<internal::OutputConfiguratorAnimation>
output_configurator_animation_;
+
+ // Receives output change events and udpates the display manager.
+ scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_;
#endif // defined(OS_CHROMEOS)
CursorManager cursor_manager_;