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..0fc2b3691716e52835d9eb793fe34202d78af2f8 100644 |
--- a/ash/wm/base_layout_manager.h |
+++ b/ash/wm/base_layout_manager.h |
@@ -77,27 +77,29 @@ class ASH_EXPORT BaseLayoutManager |
protected: |
enum AdjustWindowReason { |
- ADJUST_WINDOW_SCREEN_SIZE_CHANGED, |
- ADJUST_WINDOW_DISPLAY_INSETS_CHANGED, |
- ADJUST_WINDOW_WINDOW_ADDED |
+ ADJUST_WINDOW_DISPLAY_SIZE_CHANGED, |
+ ADJUST_WINDOW_WORK_AREA_INSETS_CHANGED, |
}; |
// Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes. |
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| |
- // is ADJUST_WINDOW_SCREEN_SIZE_CHANGED), the non-maximized/non-fullscreen |
+ // 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 changed. |
+ // If this is called for a display size change (i.e. |reason| |
+ // is ADJUST_WINDOW_DISPLAY_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 AdjustAllWindowsBoundsForWorkAreaChange( |
+ AdjustWindowReason reason); |
// 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 AdjustWindowBoundsForWorkAreaChange(aura::Window* window, |
+ AdjustWindowReason reason); |
aura::RootWindow* root_window() { return root_window_; } |