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

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

Issue 259253002: Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: with Linux Aura tests Created 6 years, 7 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
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 28 matching lines...) Expand all
39 // Called from a window state object when it gets destroyed. 39 // Called from a window state object when it gets destroyed.
40 void WindowStateDestroyed(aura::Window* window); 40 void WindowStateDestroyed(aura::Window* window);
41 41
42 // Overridden from WindowObserver: 42 // Overridden from WindowObserver:
43 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 43 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
44 virtual void OnWindowAdded(aura::Window* window) OVERRIDE; 44 virtual void OnWindowAdded(aura::Window* window) OVERRIDE;
45 virtual void OnWindowBoundsChanged(aura::Window* window, 45 virtual void OnWindowBoundsChanged(aura::Window* window,
46 const gfx::Rect& old_bounds, 46 const gfx::Rect& old_bounds,
47 const gfx::Rect& new_bounds) OVERRIDE; 47 const gfx::Rect& new_bounds) OVERRIDE;
48 48
49 // aura::DisplayObserver overrides: 49 // aura::DisplayObserver overrides:
oshima 2014/05/08 18:06:50 could you please update this to gfx:: ?
mlamouri (slow - plz ping) 2014/05/09 16:11:39 Done.
50 virtual void OnDisplayBoundsChanged(
51 const gfx::Display& display) OVERRIDE;
52 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; 50 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE;
53 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; 51 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE;
52 virtual void OnDisplayMetricsChanged(const gfx::Display& display,
53 DisplayObserver::MetricsType metrics) OVERRIDE;
54 54
55 // ShellObserver overrides: 55 // ShellObserver overrides:
56 virtual void OnOverviewModeStarting() OVERRIDE; 56 virtual void OnOverviewModeStarting() OVERRIDE;
57 virtual void OnOverviewModeEnding() OVERRIDE; 57 virtual void OnOverviewModeEnding() OVERRIDE;
58 58
59 protected: 59 protected:
60 friend class ash::Shell; 60 friend class ash::Shell;
61 61
62 // The object should only be created by the ash::Shell. 62 // The object should only be created by the ash::Shell.
63 MaximizeModeWindowManager(); 63 MaximizeModeWindowManager();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // True if all backdrops are hidden. 109 // True if all backdrops are hidden.
110 bool backdrops_hidden_; 110 bool backdrops_hidden_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager); 112 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager);
113 }; 113 };
114 114
115 } // namespace ash 115 } // namespace ash
116 116
117 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_ 117 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698