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

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

Issue 2055053002: mash: Convert ash::ShellDelegate from aura::Window to WmWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@movetrayupdate
Patch Set: rebase 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
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/shell/shell_delegate_impl.h » ('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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual WmWindow* GetRootWindowForNewWindows() = 0; 63 virtual WmWindow* GetRootWindowForNewWindows() = 0;
64 64
65 // Returns true if the first window shown on first run should be 65 // Returns true if the first window shown on first run should be
66 // unconditionally maximized, overriding the heuristic that normally chooses 66 // unconditionally maximized, overriding the heuristic that normally chooses
67 // the window size. 67 // the window size.
68 virtual bool IsForceMaximizeOnFirstRun() = 0; 68 virtual bool IsForceMaximizeOnFirstRun() = 0;
69 69
70 // Returns true if |window| can be shown for the current user. This is 70 // Returns true if |window| can be shown for the current user. This is
71 // intended to check if the current user matches the user associated with 71 // intended to check if the current user matches the user associated with
72 // |window|. 72 // |window|.
73 // TODO(jamescook): Remove this when ShellDelegate is accessible via this
74 // interface.
73 virtual bool CanShowWindowForUser(WmWindow* window) = 0; 75 virtual bool CanShowWindowForUser(WmWindow* window) = 0;
74 76
75 // See aura::client::CursorClient for details on these. 77 // See aura::client::CursorClient for details on these.
76 virtual void LockCursor() = 0; 78 virtual void LockCursor() = 0;
77 virtual void UnlockCursor() = 0; 79 virtual void UnlockCursor() = 0;
78 80
79 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; 81 virtual std::vector<WmWindow*> GetAllRootWindows() = 0;
80 82
81 virtual void RecordUserMetricsAction(wm::WmUserMetricsAction action) = 0; 83 virtual void RecordUserMetricsAction(wm::WmUserMetricsAction action) = 0;
82 84
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 protected: 117 protected:
116 virtual ~WmShell() {} 118 virtual ~WmShell() {}
117 119
118 private: 120 private:
119 static WmShell* instance_; 121 static WmShell* instance_;
120 }; 122 };
121 123
122 } // namespace ash 124 } // namespace ash
123 125
124 #endif // ASH_COMMON_WM_SHELL_H_ 126 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698