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

Unified Diff: ash/monitor/multi_monitor_manager.h

Issue 10675011: Rename the remaining usage of Monitor to Display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/monitor/mouse_cursor_event_filter.cc ('k') | ash/monitor/multi_monitor_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ash/monitor/mouse_cursor_event_filter.cc ('k') | ash/monitor/multi_monitor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698