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

Unified Diff: ash/wm/workspace/auto_window_management.h

Issue 23205027: Correctly restore the auto managed window to the original bounds when becoming single window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: ash/wm/workspace/auto_window_management.h
diff --git a/ash/wm/workspace/auto_window_management.h b/ash/wm/workspace/auto_window_management.h
index 138cb546a3e3663c8fbc39d9bf0857f58ff95e8e..9469acc89b6326d683e4341492bdef65ce749b70 100644
--- a/ash/wm/workspace/auto_window_management.h
+++ b/ash/wm/workspace/auto_window_management.h
@@ -2,7 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/aura/window.h"
+#include "ash/ash_export.h"
+
+namespace gfx {
+class Rect;
+}
+namespace aura {
+class RootWindow;
+class Window;
+}
namespace ash {
namespace internal {
@@ -16,5 +24,12 @@ void RearrangeVisibleWindowOnHideOrRemove(const aura::Window* removed_window);
void RearrangeVisibleWindowOnShow(aura::Window* added_window);
} // namespace internal
-} // namespace ash
+// Returns the top window used for automated windows location
+// management.
+// TODO(oshima): This is temporarily made public and exported until we
+// move the initial bounds logic in window_sizer_ash.cc into ash.
+ASH_EXPORT aura::Window* GetTopWindowForNewWindow(
+ const aura::RootWindow* root_window);
+
+} // namespace ash
« no previous file with comments | « no previous file | ash/wm/workspace/auto_window_management.cc » ('j') | ash/wm/workspace/auto_window_management.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698