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

Side by Side Diff: ash/common/wm_shell.h

Issue 2072853002: Implement "pinned" mode in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_WM_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Returns the root window that newly created windows should be added to. 68 // Returns the root window that newly created windows should be added to.
69 // NOTE: this returns the root, newly created window should be added to the 69 // NOTE: this returns the root, newly created window should be added to the
70 // appropriate container in the returned window. 70 // appropriate container in the returned window.
71 virtual WmWindow* GetRootWindowForNewWindows() = 0; 71 virtual WmWindow* GetRootWindowForNewWindows() = 0;
72 72
73 // Returns true if the first window shown on first run should be 73 // Returns true if the first window shown on first run should be
74 // unconditionally maximized, overriding the heuristic that normally chooses 74 // unconditionally maximized, overriding the heuristic that normally chooses
75 // the window size. 75 // the window size.
76 virtual bool IsForceMaximizeOnFirstRun() = 0; 76 virtual bool IsForceMaximizeOnFirstRun() = 0;
77 77
78 // Returns true if a window is currently pinned.
79 virtual bool IsPinned() = 0;
80
78 // Returns true if |window| can be shown for the current user. This is 81 // Returns true if |window| can be shown for the current user. This is
79 // intended to check if the current user matches the user associated with 82 // intended to check if the current user matches the user associated with
80 // |window|. 83 // |window|.
81 // TODO(jamescook): Remove this when ShellDelegate is accessible via this 84 // TODO(jamescook): Remove this when ShellDelegate is accessible via this
82 // interface. 85 // interface.
83 virtual bool CanShowWindowForUser(WmWindow* window) = 0; 86 virtual bool CanShowWindowForUser(WmWindow* window) = 0;
84 87
85 // See aura::client::CursorClient for details on these. 88 // See aura::client::CursorClient for details on these.
86 virtual void LockCursor() = 0; 89 virtual void LockCursor() = 0;
87 virtual void UnlockCursor() = 0; 90 virtual void UnlockCursor() = 0;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 143
141 static WmShell* instance_; 144 static WmShell* instance_;
142 145
143 std::unique_ptr<WmSystemTrayNotifier> system_tray_notifier_; 146 std::unique_ptr<WmSystemTrayNotifier> system_tray_notifier_;
144 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; 147 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
145 }; 148 };
146 149
147 } // namespace ash 150 } // namespace ash
148 151
149 #endif // ASH_COMMON_WM_SHELL_H_ 152 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698