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/mus/bridge/wm_shell_mus.h

Issue 2072853002: Implement "pinned" mode in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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/common/wm_shell_common.h ('k') | ash/mus/bridge/wm_shell_mus.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 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_MUS_BRIDGE_WM_SHELL_MUS_H_ 5 #ifndef ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
6 #define ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ 6 #define ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // WmShell: 47 // WmShell:
48 MruWindowTracker* GetMruWindowTracker() override; 48 MruWindowTracker* GetMruWindowTracker() override;
49 WmWindow* NewContainerWindow() override; 49 WmWindow* NewContainerWindow() override;
50 WmWindow* GetFocusedWindow() override; 50 WmWindow* GetFocusedWindow() override;
51 WmWindow* GetActiveWindow() override; 51 WmWindow* GetActiveWindow() override;
52 WmWindow* GetPrimaryRootWindow() override; 52 WmWindow* GetPrimaryRootWindow() override;
53 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; 53 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override;
54 WmWindow* GetRootWindowForNewWindows() override; 54 WmWindow* GetRootWindowForNewWindows() override;
55 bool IsForceMaximizeOnFirstRun() override; 55 bool IsForceMaximizeOnFirstRun() override;
56 bool IsPinned() override;
57 void SetPinnedWindow(WmWindow* window) override;
56 bool CanShowWindowForUser(WmWindow* window) override; 58 bool CanShowWindowForUser(WmWindow* window) override;
57 void LockCursor() override; 59 void LockCursor() override;
58 void UnlockCursor() override; 60 void UnlockCursor() override;
59 std::vector<WmWindow*> GetAllRootWindows() override; 61 std::vector<WmWindow*> GetAllRootWindows() override;
60 void RecordUserMetricsAction(UserMetricsAction action) override; 62 void RecordUserMetricsAction(UserMetricsAction action) override;
61 std::unique_ptr<WindowResizer> CreateDragWindowResizer( 63 std::unique_ptr<WindowResizer> CreateDragWindowResizer(
62 std::unique_ptr<WindowResizer> next_window_resizer, 64 std::unique_ptr<WindowResizer> next_window_resizer,
63 wm::WindowState* window_state) override; 65 wm::WindowState* window_state) override;
64 void OnOverviewModeStarting() override; 66 void OnOverviewModeStarting() override;
65 void OnOverviewModeEnded() override; 67 void OnOverviewModeEnded() override;
66 bool IsOverviewModeSelecting() override; 68 bool IsOverviewModeSelecting() override;
67 bool IsOverviewModeRestoringMinimizedWindows() override; 69 bool IsOverviewModeRestoringMinimizedWindows() override;
68 AccessibilityDelegate* GetAccessibilityDelegate() override; 70 AccessibilityDelegate* GetAccessibilityDelegate() override;
69 SessionStateDelegate* GetSessionStateDelegate() override; 71 SessionStateDelegate* GetSessionStateDelegate() override;
70 void AddActivationObserver(WmActivationObserver* observer) override; 72 void AddActivationObserver(WmActivationObserver* observer) override;
71 void RemoveActivationObserver(WmActivationObserver* observer) override; 73 void RemoveActivationObserver(WmActivationObserver* observer) override;
72 void AddDisplayObserver(WmDisplayObserver* observer) override; 74 void AddDisplayObserver(WmDisplayObserver* observer) override;
73 void RemoveDisplayObserver(WmDisplayObserver* observer) override; 75 void RemoveDisplayObserver(WmDisplayObserver* observer) override;
74 void AddShellObserver(ShellObserver* observer) override; 76 void AddShellObserver(ShellObserver* observer) override;
75 void RemoveShellObserver(ShellObserver* observer) override; 77 void RemoveShellObserver(ShellObserver* observer) override;
76 void NotifyPinnedStateChanged(WmWindow* pinned_window) override;
77 78
78 private: 79 private:
79 // Returns true if |window| is a window that can have active children. 80 // Returns true if |window| is a window that can have active children.
80 static bool IsActivationParent(::mus::Window* window); 81 static bool IsActivationParent(::mus::Window* window);
81 82
82 void RemoveClientObserver(); 83 void RemoveClientObserver();
83 84
84 // ::mus::WindowTreeClientObserver: 85 // ::mus::WindowTreeClientObserver:
85 void OnWindowTreeFocusChanged(::mus::Window* gained_focus, 86 void OnWindowTreeFocusChanged(::mus::Window* gained_focus,
86 ::mus::Window* lost_focus) override; 87 ::mus::Window* lost_focus) override;
(...skipping 11 matching lines...) Expand all
98 99
99 base::ObserverList<WmActivationObserver> activation_observers_; 100 base::ObserverList<WmActivationObserver> activation_observers_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(WmShellMus); 102 DISALLOW_COPY_AND_ASSIGN(WmShellMus);
102 }; 103 };
103 104
104 } // namespace mus 105 } // namespace mus
105 } // namespace ash 106 } // namespace ash
106 107
107 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ 108 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_
OLDNEW
« no previous file with comments | « ash/common/wm_shell_common.h ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698