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

Side by Side Diff: ash/wm/window_util.h

Issue 23471004: Only support left/right maximizing at 50% width when the --ash-enable-alternate-caption-button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up unittests + varkha@'s suggestions Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_WINDOW_UTIL_H_ 5 #ifndef ASH_WM_WINDOW_UTIL_H_
6 #define ASH_WM_WINDOW_UTIL_H_ 6 #define ASH_WM_WINDOW_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Returns true if |window| can be maximized. 46 // Returns true if |window| can be maximized.
47 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window); 47 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window);
48 48
49 // Returns true if |window| can be minimized. 49 // Returns true if |window| can be minimized.
50 ASH_EXPORT bool CanMinimizeWindow(const aura::Window* window); 50 ASH_EXPORT bool CanMinimizeWindow(const aura::Window* window);
51 51
52 // Returns true if |window| can be resized. 52 // Returns true if |window| can be resized.
53 ASH_EXPORT bool CanResizeWindow(const aura::Window* window); 53 ASH_EXPORT bool CanResizeWindow(const aura::Window* window);
54 54
55 // Returns true if |window| can be snapped to the left or right.
56 ASH_EXPORT bool CanSnapWindow(aura::Window* window);
57
58 // Returns true if |window| is normal or default. 55 // Returns true if |window| is normal or default.
59 ASH_EXPORT bool IsWindowNormal(const aura::Window* window); 56 ASH_EXPORT bool IsWindowNormal(const aura::Window* window);
60 57
61 // Returns true if |state| is normal or default. 58 // Returns true if |state| is normal or default.
62 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state); 59 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state);
63 60
64 // Returns true if |window| is in the maximized state. 61 // Returns true if |window| is in the maximized state.
65 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window); 62 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window);
66 63
67 // Returns true if |window| is minimized. 64 // Returns true if |window| is minimized.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 124
128 // Moves |window| to the root window where the |event| occured if it is not 125 // Moves |window| to the root window where the |event| occured if it is not
129 // already in the same root window. Returns true if |window| was moved. 126 // already in the same root window. Returns true if |window| was moved.
130 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, 127 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window,
131 const ui::Event& event); 128 const ui::Event& event);
132 129
133 } // namespace wm 130 } // namespace wm
134 } // namespace ash 131 } // namespace ash
135 132
136 #endif // ASH_WM_WINDOW_UTIL_H_ 133 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698