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

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: oshima review comments 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void OnOverviewModeStarting() OVERRIDE; 49 virtual void OnOverviewModeStarting() OVERRIDE;
50 virtual void OnOverviewModeEnding() OVERRIDE; 50 virtual void OnOverviewModeEnding() OVERRIDE;
51 51
52 // Overridden from WindowObserver: 52 // Overridden from WindowObserver:
53 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 53 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
54 virtual void OnWindowAdded(aura::Window* window) OVERRIDE; 54 virtual void OnWindowAdded(aura::Window* window) OVERRIDE;
55 virtual void OnWindowBoundsChanged(aura::Window* window, 55 virtual void OnWindowBoundsChanged(aura::Window* window,
56 const gfx::Rect& old_bounds, 56 const gfx::Rect& old_bounds,
57 const gfx::Rect& new_bounds) OVERRIDE; 57 const gfx::Rect& new_bounds) OVERRIDE;
58 58
59 // aura::DisplayObserver overrides: 59 // gfx::DisplayObserver overrides:
60 virtual void OnDisplayBoundsChanged(
61 const gfx::Display& display) OVERRIDE;
62 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; 60 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE;
63 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; 61 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE;
62 virtual void OnDisplayMetricsChanged(
63 const gfx::Display& display,
64 DisplayObserver::DisplayMetrics metrics) OVERRIDE;
64 65
65 // ui::EventHandler override: 66 // ui::EventHandler override:
66 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; 67 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
67 68
68 protected: 69 protected:
69 friend class ash::Shell; 70 friend class ash::Shell;
70 71
71 // The object should only be created by the ash::Shell. 72 // The object should only be created by the ash::Shell.
72 MaximizeModeWindowManager(); 73 MaximizeModeWindowManager();
73 74
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 // True if all backdrops are hidden. 119 // True if all backdrops are hidden.
119 bool backdrops_hidden_; 120 bool backdrops_hidden_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager); 122 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager);
122 }; 123 };
123 124
124 } // namespace ash 125 } // namespace ash
125 126
126 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_ 127 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698