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

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

Issue 2018753003: Moves ash/wm/common back into ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove BUILD.gn again 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/wm/common/window_state_delegate.h ('k') | ash/wm/common/window_state_util.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_WM_COMMON_WINDOW_STATE_OBSERVER_H_ 5 #ifndef ASH_WM_COMMON_WINDOW_STATE_OBSERVER_H_
6 #define ASH_WM_COMMON_WINDOW_STATE_OBSERVER_H_ 6 #define ASH_WM_COMMON_WINDOW_STATE_OBSERVER_H_
7 7
8 #include "ash/wm/common/ash_wm_common_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/common/wm_types.h" 9 #include "ash/wm/common/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_WM_COMMON_EXPORT WindowStateObserver { 15 class ASH_EXPORT WindowStateObserver {
16 public: 16 public:
17 // Following observer methods are different from kWindowShowStatekey 17 // Following observer methods are different from kWindowShowStatekey
18 // property change as they will be invoked when the window 18 // property change as they will be invoked when the window
19 // gets left/right maximized, and auto positioned. |old_type| is the value 19 // gets left/right maximized, and auto positioned. |old_type| is the value
20 // before the change. 20 // before the change.
21 21
22 // Called after the window's state type is set to new type, but before 22 // Called after the window's state type is set to new type, but before
23 // the window's bounds has been updated for the new type. 23 // the window's bounds has been updated for the new type.
24 // This is used to update the shell state such as work area so 24 // This is used to update the shell state such as work area so
25 // that the window can use the correct environment to update its bounds. 25 // that the window can use the correct environment to update its bounds.
26 // TODO(oshima): Remove this once docked windows has its own state. 26 // TODO(oshima): Remove this once docked windows has its own state.
27 virtual void OnPreWindowStateTypeChange(WindowState* window_state, 27 virtual void OnPreWindowStateTypeChange(WindowState* window_state,
28 WindowStateType old_type) {} 28 WindowStateType old_type) {}
29 29
30 // Called after the window's state has been updated. 30 // Called after the window's state has been updated.
31 // This is used to update the shell state that depends on the updated 31 // This is used to update the shell state that depends on the updated
32 // window bounds, such as shelf visibility. 32 // window bounds, such as shelf visibility.
33 virtual void OnPostWindowStateTypeChange(WindowState* window_state, 33 virtual void OnPostWindowStateTypeChange(WindowState* window_state,
34 WindowStateType old_type) {} 34 WindowStateType old_type) {}
35 }; 35 };
36 36
37 } // namespace wm 37 } // namespace wm
38 } // namespace ash 38 } // namespace ash
39 39
40 #endif // ASH_WM_COMMON_WINDOW_STATE_OBSERVER_H_ 40 #endif // ASH_WM_COMMON_WINDOW_STATE_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/window_state_delegate.h ('k') | ash/wm/common/window_state_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698