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

Unified Diff: ash/shelf/shelf_layout_manager.h

Issue 18637004: Sets the background color of shelf is opaque black when maximized (2nd) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove log Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698