Index: ash/wm/base_layout_manager.h |
diff --git a/ash/wm/base_layout_manager.h b/ash/wm/base_layout_manager.h |
index 7fe25e5fe678418612880e32d2fe1d1e6422f110..42bae4d3699a910731a762548dddc41350dffd80 100644 |
--- a/ash/wm/base_layout_manager.h |
+++ b/ash/wm/base_layout_manager.h |
@@ -77,8 +77,8 @@ class ASH_EXPORT BaseLayoutManager |
protected: |
enum AdjustWindowReason { |
- ADJUST_WINDOW_SCREEN_SIZE_CHANGED, |
- ADJUST_WINDOW_DISPLAY_INSETS_CHANGED, |
+ ADJUST_WINDOW_DISPLAY_SIZE_CHANGED, |
+ ADJUST_WINDOW_WORK_AREA_INSETS_CHANGED, |
ADJUST_WINDOW_WINDOW_ADDED |
}; |
@@ -86,18 +86,20 @@ class ASH_EXPORT BaseLayoutManager |
virtual void ShowStateChanged(aura::Window* window, |
ui::WindowShowState last_show_state); |
- // Adjusts the window sizes when the screen changes its size or its |
- // work area insets. If this is called for a screen size change (i.e. |reason| |
+ // Adjusts the window's bounds when the display area changes for given |
+ // window. This happens when the display size, work area insets or |
+ // the display on which the window exists has changd. |
+ // If this is called for a display size change (i.e. |reason| |
// is ADJUST_WINDOW_SCREEN_SIZE_CHANGED), the non-maximized/non-fullscreen |
// windows are readjusted to make sure the window is completely within the |
// display region. Otherwise, it makes sure at least some parts of the window |
// is on display. |
- virtual void AdjustWindowSizesForScreenChange(AdjustWindowReason reason); |
+ virtual void AdjustWindowsBounds(AdjustWindowReason reason); |
Mr4D (OOO till 08-26)
2013/08/06 20:22:51
I actually liked the previous name much more since
oshima
2013/08/06 23:13:20
It actually didn't state what it does, and that's
|
// Adjusts the sizes of the specific window in respond to a screen change or |
// display-area size change. |
- virtual void AdjustWindowSizeForScreenChange(aura::Window* window, |
- AdjustWindowReason reason); |
+ virtual void AdjustWindowBounds(aura::Window* window, |
+ AdjustWindowReason reason); |
Mr4D (OOO till 08-26)
2013/08/06 20:22:51
Same here.
|
aura::RootWindow* root_window() { return root_window_; } |