| Index: ash/shelf/shelf_layout_manager.h
|
| diff --git a/ash/shelf/shelf_layout_manager.h b/ash/shelf/shelf_layout_manager.h
|
| index d49f42a3c3377fe656904b62e919f2b52e4a2045..939a057e4be177705107d15560d63fb42818313e 100644
|
| --- a/ash/shelf/shelf_layout_manager.h
|
| +++ b/ash/shelf/shelf_layout_manager.h
|
| @@ -13,6 +13,7 @@
|
| #include "ash/shelf/shelf_types.h"
|
| #include "ash/shell_observer.h"
|
| #include "ash/system/status_area_widget.h"
|
| +#include "ash/wm/workspace/workspace_types.h"
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/logging.h"
|
| @@ -93,6 +94,9 @@ class ASH_EXPORT ShelfLayoutManager :
|
|
|
| bool in_layout() const { return in_layout_; }
|
|
|
| + // Clears internal data for shutdown process.
|
| + void PrepareForShutdown();
|
| +
|
| // Returns whether the shelf and its contents (launcher, status) are visible
|
| // on the screen.
|
| bool IsVisible() const;
|
| @@ -217,6 +221,7 @@ class ASH_EXPORT ShelfLayoutManager :
|
| struct State {
|
| State() : visibility_state(SHELF_VISIBLE),
|
| auto_hide_state(SHELF_AUTO_HIDE_HIDDEN),
|
| + window_state(WORKSPACE_WINDOW_STATE_DEFAULT),
|
| is_screen_locked(false) {}
|
|
|
| // Returns true if the two states are considered equal. As
|
| @@ -227,11 +232,13 @@ class ASH_EXPORT ShelfLayoutManager :
|
| return other.visibility_state == visibility_state &&
|
| (visibility_state != SHELF_AUTO_HIDE ||
|
| other.auto_hide_state == auto_hide_state) &&
|
| + other.window_state == window_state &&
|
| other.is_screen_locked == is_screen_locked;
|
| }
|
|
|
| ShelfVisibilityState visibility_state;
|
| ShelfAutoHideState auto_hide_state;
|
| + WorkspaceWindowState window_state;
|
| bool is_screen_locked;
|
| };
|
|
|
| @@ -258,8 +265,8 @@ class ASH_EXPORT ShelfLayoutManager :
|
| // Updates the background of the shelf.
|
| void UpdateShelfBackground(BackgroundAnimator::ChangeType type);
|
|
|
| - // Returns whether the launcher should draw a background.
|
| - bool GetLauncherPaintsBackground() const;
|
| + // Returns how the shelf background is painted.
|
| + ShelfBackgroundType GetShelfBackgroundType() const;
|
|
|
| // Updates the auto hide state immediately.
|
| void UpdateAutoHideStateNow();
|
|
|