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

Unified Diff: ui/aura/test/single_monitor_manager.h

Issue 10082008: Aura demo fix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export Created 8 years, 8 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/test/aura_test_base.cc ('k') | ui/aura/test/single_monitor_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/single_monitor_manager.h
diff --git a/ui/aura/test/single_monitor_manager.h b/ui/aura/test/single_monitor_manager.h
deleted file mode 100644
index 58b65ef0c8b5be544730c228b4c075cc062b33f4..0000000000000000000000000000000000000000
--- a/ui/aura/test/single_monitor_manager.h
+++ /dev/null
@@ -1,59 +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_TEST_SINGLE_MONITOR_MANAGER_H_
-#define UI_AURA_TEST_SINGLE_MONITOR_MANAGER_H_
-#pragma once
-
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/aura/monitor_manager.h"
-#include "ui/aura/window_observer.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace aura {
-namespace test {
-
-// A monitor manager assuming there is one monitor.
-class SingleMonitorManager : public MonitorManager,
- public WindowObserver {
- public:
- SingleMonitorManager();
- virtual ~SingleMonitorManager();
-
- // MonitorManager overrides:
- virtual void OnNativeMonitorsChanged(
- const std::vector<const Monitor*>& monitors) OVERRIDE;
- virtual RootWindow* CreateRootWindowForMonitor(
- Monitor* monitor) OVERRIDE;
- virtual const Monitor* GetMonitorNearestWindow(
- const Window* window) const OVERRIDE;
- virtual const Monitor* GetMonitorNearestPoint(
- const gfx::Point& point) const OVERRIDE;
- virtual Monitor* GetMonitorAt(size_t index) OVERRIDE;
- virtual size_t GetNumMonitors() const OVERRIDE;
- virtual Monitor* GetMonitorNearestWindow(const Window* window) OVERRIDE;
-
- // WindowObserver overrides:
- virtual void OnWindowBoundsChanged(Window* window,
- const gfx::Rect& bounds) OVERRIDE;
- virtual void OnWindowDestroying(Window* window) OVERRIDE;
-
- private:
- void Init();
- void Update(const gfx::Size size);
-
- RootWindow* root_window_;
- scoped_ptr<Monitor> monitor_;
-
- DISALLOW_COPY_AND_ASSIGN(SingleMonitorManager);
-};
-
-} // namespace test
-} // namespace aura
-
-#endif // UI_AURA_TEST_SINGLE_MONITOR_MANAGER_H_
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/aura/test/single_monitor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698