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

Side by Side Diff: ash/aura/wm_shell_aura.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/ash.gyp ('k') | ash/aura/wm_shell_aura.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_AURA_WM_SHELL_AURA_H_ 5 #ifndef ASH_AURA_WM_SHELL_AURA_H_
6 #define ASH_AURA_WM_SHELL_AURA_H_ 6 #define ASH_AURA_WM_SHELL_AURA_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/aura/wm_lookup_aura.h" 9 #include "ash/aura/wm_lookup_aura.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // WmShell: 33 // WmShell:
34 MruWindowTracker* GetMruWindowTracker() override; 34 MruWindowTracker* GetMruWindowTracker() override;
35 WmWindow* NewContainerWindow() override; 35 WmWindow* NewContainerWindow() override;
36 WmWindow* GetFocusedWindow() override; 36 WmWindow* GetFocusedWindow() override;
37 WmWindow* GetActiveWindow() override; 37 WmWindow* GetActiveWindow() override;
38 WmWindow* GetPrimaryRootWindow() override; 38 WmWindow* GetPrimaryRootWindow() override;
39 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; 39 WmWindow* GetRootWindowForDisplayId(int64_t display_id) override;
40 WmWindow* GetRootWindowForNewWindows() override; 40 WmWindow* GetRootWindowForNewWindows() override;
41 bool IsForceMaximizeOnFirstRun() override; 41 bool IsForceMaximizeOnFirstRun() override;
42 bool IsPinned() override;
43 void SetPinnedWindow(WmWindow* window) override;
42 bool CanShowWindowForUser(WmWindow* window) override; 44 bool CanShowWindowForUser(WmWindow* window) override;
43 void LockCursor() override; 45 void LockCursor() override;
44 void UnlockCursor() override; 46 void UnlockCursor() override;
45 std::vector<WmWindow*> GetAllRootWindows() override; 47 std::vector<WmWindow*> GetAllRootWindows() override;
46 void RecordUserMetricsAction(UserMetricsAction action) override; 48 void RecordUserMetricsAction(UserMetricsAction action) override;
47 std::unique_ptr<WindowResizer> CreateDragWindowResizer( 49 std::unique_ptr<WindowResizer> CreateDragWindowResizer(
48 std::unique_ptr<WindowResizer> next_window_resizer, 50 std::unique_ptr<WindowResizer> next_window_resizer,
49 wm::WindowState* window_state) override; 51 wm::WindowState* window_state) override;
50 void OnOverviewModeStarting() override; 52 void OnOverviewModeStarting() override;
51 void OnOverviewModeEnded() override; 53 void OnOverviewModeEnded() override;
52 bool IsOverviewModeSelecting() override; 54 bool IsOverviewModeSelecting() override;
53 bool IsOverviewModeRestoringMinimizedWindows() override; 55 bool IsOverviewModeRestoringMinimizedWindows() override;
54 AccessibilityDelegate* GetAccessibilityDelegate() override; 56 AccessibilityDelegate* GetAccessibilityDelegate() override;
55 SessionStateDelegate* GetSessionStateDelegate() override; 57 SessionStateDelegate* GetSessionStateDelegate() override;
56 void AddActivationObserver(WmActivationObserver* observer) override; 58 void AddActivationObserver(WmActivationObserver* observer) override;
57 void RemoveActivationObserver(WmActivationObserver* observer) override; 59 void RemoveActivationObserver(WmActivationObserver* observer) override;
58 void AddDisplayObserver(WmDisplayObserver* observer) override; 60 void AddDisplayObserver(WmDisplayObserver* observer) override;
59 void RemoveDisplayObserver(WmDisplayObserver* observer) override; 61 void RemoveDisplayObserver(WmDisplayObserver* observer) override;
60 void AddShellObserver(ShellObserver* observer) override; 62 void AddShellObserver(ShellObserver* observer) override;
61 void RemoveShellObserver(ShellObserver* observer) override; 63 void RemoveShellObserver(ShellObserver* observer) override;
62 void NotifyPinnedStateChanged(WmWindow* pinned_window) override;
63 64
64 private: 65 private:
65 // aura::client::ActivationChangeObserver: 66 // aura::client::ActivationChangeObserver:
66 void OnWindowActivated(ActivationReason reason, 67 void OnWindowActivated(ActivationReason reason,
67 aura::Window* gained_active, 68 aura::Window* gained_active,
68 aura::Window* lost_active) override; 69 aura::Window* lost_active) override;
69 void OnAttemptToReactivateWindow(aura::Window* request_active, 70 void OnAttemptToReactivateWindow(aura::Window* request_active,
70 aura::Window* actual_active) override; 71 aura::Window* actual_active) override;
71 72
72 // WindowTreeHostManager::Observer: 73 // WindowTreeHostManager::Observer:
73 void OnDisplayConfigurationChanging() override; 74 void OnDisplayConfigurationChanging() override;
74 void OnDisplayConfigurationChanged() override; 75 void OnDisplayConfigurationChanged() override;
75 76
76 // Owned by Shell. 77 // Owned by Shell.
77 WmShellCommon* wm_shell_common_; 78 WmShellCommon* wm_shell_common_;
78 79
79 WmLookupAura wm_lookup_; 80 WmLookupAura wm_lookup_;
80 bool added_activation_observer_ = false; 81 bool added_activation_observer_ = false;
81 base::ObserverList<WmActivationObserver> activation_observers_; 82 base::ObserverList<WmActivationObserver> activation_observers_;
82 83
83 bool added_display_observer_ = false; 84 bool added_display_observer_ = false;
84 base::ObserverList<WmDisplayObserver> display_observers_; 85 base::ObserverList<WmDisplayObserver> display_observers_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(WmShellAura); 87 DISALLOW_COPY_AND_ASSIGN(WmShellAura);
87 }; 88 };
88 89
89 } // namespace ash 90 } // namespace ash
90 91
91 #endif // ASH_AURA_WM_SHELL_AURA_H_ 92 #endif // ASH_AURA_WM_SHELL_AURA_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/aura/wm_shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698