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

Side by Side Diff: ash/display/display_controller.h

Issue 259253002: Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: jochen comments (inc. git cl format) 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
« no previous file with comments | « no previous file | ash/display/display_controller.cc » ('j') | ash/display/display_manager.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DISPLAY_DISPLAY_CONTROLLER_H_ 5 #ifndef ASH_DISPLAY_DISPLAY_CONTROLLER_H_
6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ 6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 gfx::Insets GetOverscanInsets(int64 display_id) const; 138 gfx::Insets GetOverscanInsets(int64 display_id) const;
139 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); 139 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip);
140 140
141 // Checks if the mouse pointer is on one of displays, and moves to 141 // Checks if the mouse pointer is on one of displays, and moves to
142 // the center of the nearest display if it's outside of all displays. 142 // the center of the nearest display if it's outside of all displays.
143 void EnsurePointerInDisplays(); 143 void EnsurePointerInDisplays();
144 144
145 // Sets the work area's |insets| to the display assigned to |window|. 145 // Sets the work area's |insets| to the display assigned to |window|.
146 bool UpdateWorkAreaOfDisplayNearestWindow(const aura::Window* window, 146 bool UpdateWorkAreaOfDisplayNearestWindow(const aura::Window* window,
147 const gfx::Insets& insets); 147 const gfx::Insets& insets);
148 // aura::DisplayObserver overrides: 148 // gfx::DisplayObserver overrides:
149 virtual void OnDisplayBoundsChanged(
150 const gfx::Display& display) OVERRIDE;
151 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; 149 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE;
152 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; 150 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE;
151 virtual void OnDisplayMetricsChanged(
152 const gfx::Display& display,
153 DisplayObserver::DisplayMetrics metrics) OVERRIDE;
oshima 2014/05/14 15:53:34 this should be uint32. I probably misguided when w
153 154
154 // aura::WindowTreeHostObserver overrides: 155 // aura::WindowTreeHostObserver overrides:
155 virtual void OnHostResized(const aura::WindowTreeHost* host) OVERRIDE; 156 virtual void OnHostResized(const aura::WindowTreeHost* host) OVERRIDE;
156 157
157 // aura::DisplayManager::Delegate overrides: 158 // aura::DisplayManager::Delegate overrides:
158 virtual void CreateOrUpdateNonDesktopDisplay(const DisplayInfo& info) 159 virtual void CreateOrUpdateNonDesktopDisplay(const DisplayInfo& info)
159 OVERRIDE; 160 OVERRIDE;
160 virtual void CloseNonDesktopDisplay() OVERRIDE; 161 virtual void CloseNonDesktopDisplay() OVERRIDE;
161 virtual void PreDisplayConfigurationChange(bool clear_focus) OVERRIDE; 162 virtual void PreDisplayConfigurationChange(bool clear_focus) OVERRIDE;
162 virtual void PostDisplayConfigurationChange() OVERRIDE; 163 virtual void PostDisplayConfigurationChange() OVERRIDE;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // restore the cursor location when display configuration 217 // restore the cursor location when display configuration
217 // changed. 218 // changed.
218 gfx::Point cursor_location_in_native_coords_for_restore_; 219 gfx::Point cursor_location_in_native_coords_for_restore_;
219 220
220 DISALLOW_COPY_AND_ASSIGN(DisplayController); 221 DISALLOW_COPY_AND_ASSIGN(DisplayController);
221 }; 222 };
222 223
223 } // namespace ash 224 } // namespace ash
224 225
225 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ 226 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/display/display_controller.cc » ('j') | ash/display/display_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698