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

Unified Diff: ui/aura/screen_aura.h

Issue 8205018: Gets component build to work with aura. As part of this I needed to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
Index: ui/aura/screen_aura.h
diff --git a/ui/aura/screen_aura.h b/ui/aura/screen_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..eaafbf044444953941780837ec7d335399b4a231
--- /dev/null
+++ b/ui/aura/screen_aura.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2011 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_SCREEN_AURA_H_
+#define UI_AURA_SCREEN_AURA_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "ui/gfx/screen.h"
+
+namespace aura {
+namespace internal {
+
+// Aura implementation of gfx::Screen. Implemented here to avoid circular
+// dependencies.
+class ScreenAura : public gfx::Screen {
+ public:
+ ScreenAura();
+ virtual ~ScreenAura();
+
+ protected:
+ virtual gfx::Rect GetMonitorWorkAreaNearestWindowImpl(
+ gfx::NativeView view) OVERRIDE;
+ virtual gfx::Rect GetMonitorAreaNearestWindowImpl(
+ gfx::NativeView view) OVERRIDE;
+ virtual gfx::Rect GetMonitorWorkAreaNearestPointImpl(
+ const gfx::Point& point) OVERRIDE;
+ virtual gfx::Rect GetMonitorAreaNearestPointImpl(
+ const gfx::Point& point) OVERRIDE;
+ virtual gfx::NativeWindow GetWindowAtCursorScreenPointImpl() OVERRIDE;
+
+private:
+ DISALLOW_COPY_AND_ASSIGN(ScreenAura);
+};
+
+} // namespace internal
+} // namespace aura
+
+#endif // UI_AURA_SCREEN_AURA_H_
« no previous file with comments | « ui/aura/layout_manager.h ('k') | ui/aura/screen_aura.cc » ('j') | ui/gfx/screen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698