Index: ash/monitor/multi_monitor_manager.h |
diff --git a/ash/monitor/multi_monitor_manager.h b/ash/monitor/multi_monitor_manager.h |
deleted file mode 100644 |
index 3849dfe1ae7c6f1a6cd4ad5811082881fe729f04..0000000000000000000000000000000000000000 |
--- a/ash/monitor/multi_monitor_manager.h |
+++ /dev/null |
@@ -1,84 +0,0 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef ASH_MONITOR_MULTI_MONITOR_MANAGER_H_ |
-#define ASH_MONITOR_MULTI_MONITOR_MANAGER_H_ |
-#pragma once |
- |
-#include <vector> |
- |
-#include "ash/ash_export.h" |
-#include "base/compiler_specific.h" |
-#include "base/gtest_prod_util.h" |
-#include "ui/aura/monitor_manager.h" |
-#include "ui/aura/root_window_observer.h" |
-#include "ui/aura/window.h" |
- |
-namespace gfx { |
-class Insets; |
-class Display; |
-} |
- |
-namespace ash { |
-namespace internal { |
- |
-// MultiMonitorManager maintains the current monitor configurations, |
-// and notifies observers when configuration changes. |
-// This is exported for unittest. |
-// |
-// TODO(oshima): gfx::Screen needs to return translated coordinates |
-// if the root window is translated. crbug.com/119268. |
-class ASH_EXPORT MultiMonitorManager : public aura::MonitorManager, |
- public aura::RootWindowObserver { |
- public: |
- MultiMonitorManager(); |
- virtual ~MultiMonitorManager(); |
- |
- // Used to emulate monitor change when run in a desktop environment instead |
- // of on a device. |
- static void AddRemoveMonitor(); |
- static void CycleMonitor(); |
- static void ToggleMonitorScale(); |
- |
- bool UpdateWorkAreaOfMonitorNearestWindow(const aura::Window* window, |
- const gfx::Insets& insets); |
- |
- // MonitorManager overrides: |
- virtual void OnNativeMonitorsChanged( |
- const std::vector<gfx::Display>& displays) OVERRIDE; |
- virtual aura::RootWindow* CreateRootWindowForMonitor( |
- const gfx::Display& display) OVERRIDE; |
- virtual const gfx::Display& GetDisplayAt(size_t index) OVERRIDE; |
- |
- virtual size_t GetNumDisplays() const OVERRIDE; |
- virtual const gfx::Display& GetDisplayNearestPoint( |
- const gfx::Point& point) const OVERRIDE; |
- virtual const gfx::Display& GetDisplayNearestWindow( |
- const aura::Window* window) const OVERRIDE; |
- |
- // RootWindowObserver overrides: |
- virtual void OnRootWindowResized(const aura::RootWindow* root, |
- const gfx::Size& new_size) OVERRIDE; |
- |
- private: |
- FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, ConvertPoint); |
- typedef std::vector<gfx::Display> Displays; |
- |
- void Init(); |
- void AddRemoveMonitorImpl(); |
- void CycleMonitorImpl(); |
- void ScaleMonitorImpl(); |
- gfx::Display& FindDisplayForRootWindow(const aura::RootWindow* root); |
- |
- Displays displays_; |
- |
- DISALLOW_COPY_AND_ASSIGN(MultiMonitorManager); |
-}; |
- |
-extern const aura::WindowProperty<int>* const kMonitorIdKey; |
- |
-} // namespace internal |
-} // namespace ash |
- |
-#endif // ASH_MONITOR_MULTI_MONITOR_MANAGER_H_ |