| 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..5a0b566da97dd8d32415e08cc7fcb382ab4686b5 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 AdjustWindowsBoundsForWorkAreaChange(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 AdjustWindowBounds(aura::Window* window,
|
| + AdjustWindowReason reason);
|
|
|
| aura::RootWindow* root_window() { return root_window_; }
|
|
|
|
|