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

Unified Diff: ui/aura/single_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 | « ui/aura/single_display_manager.cc ('k') | ui/aura/single_monitor_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/single_monitor_manager.h
diff --git a/ui/aura/single_monitor_manager.h b/ui/aura/single_monitor_manager.h
deleted file mode 100644
index 46ef34c4ebbce27f9342ac4b41a7a415a0b15848..0000000000000000000000000000000000000000
--- a/ui/aura/single_monitor_manager.h
+++ /dev/null
@@ -1,60 +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 UI_AURA_SINGLE_MONITOR_MANAGER_H_
-#define UI_AURA_SINGLE_MONITOR_MANAGER_H_
-#pragma once
-
-#include "base/compiler_specific.h"
-#include "ui/aura/aura_export.h"
-#include "ui/aura/monitor_manager.h"
-#include "ui/aura/window_observer.h"
-#include "ui/gfx/display.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace aura {
-
-// A monitor manager assuming there is one monitor.
-class AURA_EXPORT SingleMonitorManager : public MonitorManager,
- public WindowObserver {
- public:
- SingleMonitorManager();
- virtual ~SingleMonitorManager();
-
- // MonitorManager overrides:
- virtual void OnNativeMonitorsChanged(
- const std::vector<gfx::Display>& display) OVERRIDE;
- virtual 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& GetDisplayNearestWindow(
- const Window* window) const OVERRIDE;
- virtual const gfx::Display& GetDisplayNearestPoint(
- const gfx::Point& point) const OVERRIDE;
-
- // WindowObserver overrides:
- virtual void OnWindowBoundsChanged(Window* window,
- const gfx::Rect& old_bounds,
- const gfx::Rect& new_bounds) OVERRIDE;
- virtual void OnWindowDestroying(Window* window) OVERRIDE;
-
- private:
- void Init();
- void Update(const gfx::Size size);
-
- RootWindow* root_window_;
- gfx::Display display_;
-
- DISALLOW_COPY_AND_ASSIGN(SingleMonitorManager);
-};
-
-} // namespace aura
-
-#endif // UI_AURA_SINGLE_MONITOR_MANAGER_H_
« no previous file with comments | « ui/aura/single_display_manager.cc ('k') | ui/aura/single_monitor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698