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

Side by Side Diff: ash/common/wm/window_state_observer.h

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: Rebase Created 3 years, 9 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/window_state.cc ('k') | ash/common/wm/wm_event.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WINDOW_STATE_OBSERVER_H_ 5 #ifndef ASH_COMMON_WM_WINDOW_STATE_OBSERVER_H_
6 #define ASH_COMMON_WM_WINDOW_STATE_OBSERVER_H_ 6 #define ASH_COMMON_WM_WINDOW_STATE_OBSERVER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/wm/wm_types.h" 9 #include "ash/common/wm/wm_types.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace wm { 12 namespace wm {
13 class WindowState; 13 class WindowState;
14 14
15 class ASH_EXPORT WindowStateObserver { 15 class ASH_EXPORT WindowStateObserver {
16 public: 16 public:
17 virtual ~WindowStateObserver() {} 17 virtual ~WindowStateObserver() {}
18 18
19 // Following observer methods are different from kWindowShowStatekey 19 // Following observer methods are different from kWindowShowStatekey
20 // property change as they will be invoked when the window 20 // property change as they will be invoked when the window
21 // gets left/right maximized, and auto positioned. |old_type| is the value 21 // gets left/right maximized, and auto positioned. |old_type| is the value
22 // before the change. 22 // before the change.
23 23
24 // Called after the window's state type is set to new type, but before 24 // Called after the window's state type is set to new type, but before
25 // the window's bounds has been updated for the new type. 25 // the window's bounds has been updated for the new type.
26 // This is used to update the shell state such as work area so 26 // This is used to update the shell state such as work area so
27 // that the window can use the correct environment to update its bounds. 27 // that the window can use the correct environment to update its bounds.
28 // TODO(oshima): Remove this once docked windows has its own state.
29 virtual void OnPreWindowStateTypeChange(WindowState* window_state, 28 virtual void OnPreWindowStateTypeChange(WindowState* window_state,
30 WindowStateType old_type) {} 29 WindowStateType old_type) {}
31 30
32 // Called after the window's state has been updated. 31 // Called after the window's state has been updated.
33 // This is used to update the shell state that depends on the updated 32 // This is used to update the shell state that depends on the updated
34 // window bounds, such as shelf visibility. 33 // window bounds, such as shelf visibility.
35 virtual void OnPostWindowStateTypeChange(WindowState* window_state, 34 virtual void OnPostWindowStateTypeChange(WindowState* window_state,
36 WindowStateType old_type) {} 35 WindowStateType old_type) {}
37 }; 36 };
38 37
39 } // namespace wm 38 } // namespace wm
40 } // namespace ash 39 } // namespace ash
41 40
42 #endif // ASH_COMMON_WM_WINDOW_STATE_OBSERVER_H_ 41 #endif // ASH_COMMON_WM_WINDOW_STATE_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/common/wm/window_state.cc ('k') | ash/common/wm/wm_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698