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

Unified Diff: ui/views/corewm/screen_util.h

Issue 11574041: Move WindowResizer to CoreWM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/wm/workspace/workspace_window_resizer.cc ('k') | ui/views/corewm/screen_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/screen_util.h
===================================================================
--- ui/views/corewm/screen_util.h (revision 0)
+++ ui/views/corewm/screen_util.h (revision 0)
@@ -0,0 +1,37 @@
+// 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_VIEWS_COREWM_SCREEN_UTIL_H_
+#define UI_VIEWS_COREWM_SCREEN_UTIL_H_
+
+#include "base/compiler_specific.h"
+#include "ui/views/views_export.h"
+
+namespace aura {
+class Window;
+}
+namespace gfx {
+class Rect;
+}
+
+namespace views {
+namespace corewm {
+
+// Returns the display's work area bounds in parent coordinates.
+VIEWS_EXPORT gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window);
+
+// Converts |rect| from |window|'s coordinates to the virtual screen
+// coordinates.
+VIEWS_EXPORT gfx::Rect ConvertRectToScreen(aura::Window* window,
+ const gfx::Rect& rect);
+
+// Converts |rect| from virtual screen coordinates to the |window|'s
+// coordinates.
+VIEWS_EXPORT gfx::Rect ConvertRectFromScreen(aura::Window* window,
+ const gfx::Rect& rect);
+
+} // namespace corewm
+} // namespace views
+
+#endif // UI_VIEWS_COREWM_SCREEN_UTIL_H_
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer.cc ('k') | ui/views/corewm/screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698