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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_manager.h

Issue 2918403006: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: Add unittests. Will split the CL into two CLs. Created 3 years, 5 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/shell_observer.h ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_ 6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // changes. 50 // changes.
51 // The call gets ignored if the window was already or should not be handled. 51 // The call gets ignored if the window was already or should not be handled.
52 void AddWindow(aura::Window* window); 52 void AddWindow(aura::Window* window);
53 53
54 // Called from a window state object when it gets destroyed. 54 // Called from a window state object when it gets destroyed.
55 void WindowStateDestroyed(aura::Window* window); 55 void WindowStateDestroyed(aura::Window* window);
56 56
57 // ShellObserver overrides: 57 // ShellObserver overrides:
58 void OnOverviewModeStarting() override; 58 void OnOverviewModeStarting() override;
59 void OnOverviewModeEnded() override; 59 void OnOverviewModeEnded() override;
60 void OnSplitViewModeEnded() override;
60 61
61 // Overridden from WindowObserver: 62 // Overridden from WindowObserver:
62 void OnWindowDestroying(aura::Window* window) override; 63 void OnWindowDestroying(aura::Window* window) override;
63 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; 64 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override;
64 void OnWindowPropertyChanged(aura::Window* window, 65 void OnWindowPropertyChanged(aura::Window* window,
65 const void* key, 66 const void* key,
66 intptr_t old) override; 67 intptr_t old) override;
67 void OnWindowBoundsChanged(aura::Window* window, 68 void OnWindowBoundsChanged(aura::Window* window,
68 const gfx::Rect& old_bounds, 69 const gfx::Rect& old_bounds,
69 const gfx::Rect& new_bounds) override; 70 const gfx::Rect& new_bounds) override;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 std::unordered_set<aura::Window*> added_windows_; 137 std::unordered_set<aura::Window*> added_windows_;
137 138
138 std::unique_ptr<wm::MaximizeModeEventHandler> event_handler_; 139 std::unique_ptr<wm::MaximizeModeEventHandler> event_handler_;
139 140
140 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager); 141 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager);
141 }; 142 };
142 143
143 } // namespace ash 144 } // namespace ash
144 145
145 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_ 146 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/shell_observer.h ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698