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

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

Issue 1890713002: Adds WmWindow and converts WindowState to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 years, 8 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/wm_window.h ('k') | ash/wm/common/wm_window_property.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_WM_COMMON_WM_WINDOW_OBSERVER_H_
6 #define ASH_WM_COMMON_WM_WINDOW_OBSERVER_H_
7
8 #include "ash/ash_export.h"
9
10 namespace gfx {
11 class Rect;
12 }
13
14 namespace ash {
15 namespace wm {
16
17 class WmWindow;
18 enum class WmWindowProperty;
19
20 class ASH_EXPORT WmWindowObserver {
21 public:
22 struct TreeChangeParams {
23 WmWindow* target = nullptr;
24 WmWindow* old_parent = nullptr;
25 WmWindow* new_parent = nullptr;
26 };
27
28 // |window| is the window the observer was added to, which is not necessarily
29 // the window that was added/removed.
30 virtual void OnWindowTreeChanged(WmWindow* window,
31 const TreeChangeParams& params) {}
32
33 virtual void OnWindowPropertyChanged(WmWindow* window,
34 WmWindowProperty property,
35 intptr_t old) {}
36
37 virtual void OnWindowStackingChanged(WmWindow* window) {}
38
39 virtual void OnWindowDestroying(WmWindow* window) {}
40
41 virtual void OnWindowBoundsChanged(WmWindow* window,
42 const gfx::Rect& old_bounds,
43 const gfx::Rect& new_bounds) {}
44
45 protected:
46 virtual ~WmWindowObserver() {}
47 };
48
49 } // namespace wm
50 } // namespace ash
51
52 #endif // ASH_WM_COMMON_WM_WINDOW_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_window.h ('k') | ash/wm/common/wm_window_property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698