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

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

Issue 9817025: Ash: Use right edge of screen to scroll maximized windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « ash/wm/frame_painter.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include <set>
10
11 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
12 10
13 namespace aura { 11 namespace aura {
14 class Window; 12 class Window;
15 } 13 }
16 14
17 namespace ash { 15 namespace ash {
18 namespace wm { 16 namespace wm {
19 17
20 // Convenience setters/getters for |aura::client::kRootWindowActiveWindow|. 18 // Convenience setters/getters for |aura::client::kRootWindowActiveWindow|.
(...skipping 20 matching lines...) Expand all
41 39
42 // Returns true if |window| is in the fullscreen state. 40 // Returns true if |window| is in the fullscreen state.
43 ASH_EXPORT bool IsWindowFullscreen(aura::Window* window); 41 ASH_EXPORT bool IsWindowFullscreen(aura::Window* window);
44 42
45 // Maximizes |window|, which must not be NULL. 43 // Maximizes |window|, which must not be NULL.
46 ASH_EXPORT void MaximizeWindow(aura::Window* window); 44 ASH_EXPORT void MaximizeWindow(aura::Window* window);
47 45
48 // Restores |window|, which must not be NULL. 46 // Restores |window|, which must not be NULL.
49 ASH_EXPORT void RestoreWindow(aura::Window* window); 47 ASH_EXPORT void RestoreWindow(aura::Window* window);
50 48
51 // Returns true if the set of |windows| contains a full-screen window.
52 typedef std::set<aura::Window*> WindowSet;
53 ASH_EXPORT bool HasFullscreenWindow(const WindowSet& windows);
54
55 // Sets whether the window should be open in a split mode. Only applicable when 49 // Sets whether the window should be open in a split mode. Only applicable when
56 // workspaces are used. 50 // workspaces are used.
57 ASH_EXPORT void SetOpenWindowSplit(aura::Window* window, bool value); 51 ASH_EXPORT void SetOpenWindowSplit(aura::Window* window, bool value);
58 ASH_EXPORT bool GetOpenWindowSplit(aura::Window* window); 52 ASH_EXPORT bool GetOpenWindowSplit(aura::Window* window);
59 53
60 } // namespace wm 54 } // namespace wm
61 } // namespace ash 55 } // namespace ash
62 56
63 #endif // ASH_WM_WINDOW_UTIL_H_ 57 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ash/wm/frame_painter.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698