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

Side by Side Diff: ash/shelf/shelf_widget.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shelf/shelf_types.h ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SHELF_SHELF_WIDGET_H_ 5 #ifndef ASH_SHELF_SHELF_WIDGET_H_
6 #define ASH_SHELF_SHELF_WIDGET_H_ 6 #define ASH_SHELF_SHELF_WIDGET_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/background_animator.h" 9 #include "ash/shelf/background_animator.h"
10 #include "ash/shelf/shelf_types.h" 10 #include "ash/shelf/shelf_types.h"
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 ShelfWidget( 31 ShelfWidget(
32 aura::Window* shelf_container, 32 aura::Window* shelf_container,
33 aura::Window* status_container, 33 aura::Window* status_container,
34 internal::WorkspaceController* workspace_controller); 34 internal::WorkspaceController* workspace_controller);
35 virtual ~ShelfWidget(); 35 virtual ~ShelfWidget();
36 36
37 void SetAlignment(ShelfAlignment alignmnet); 37 void SetAlignment(ShelfAlignment alignmnet);
38 ShelfAlignment GetAlignment() const; 38 ShelfAlignment GetAlignment() const;
39 39
40 // Sets whether the shelf paints a background. Default is false, but is set 40 // Sets the shelf's background type.
41 // to true if a window overlaps the shelf.
42 void SetPaintsBackground( 41 void SetPaintsBackground(
43 bool value, 42 ShelfBackgroundType background_type,
44 internal::BackgroundAnimator::ChangeType change_type); 43 internal::BackgroundAnimator::ChangeType change_type);
45 bool paints_background() const { 44 ShelfBackgroundType GetBackgroundType() const;
46 return background_animator_.paints_background();
47 }
48 45
49 // Causes shelf items to be slightly dimmed (eg when a window is maximized). 46 // Causes shelf items to be slightly dimmed (eg when a window is maximized).
50 void SetDimsShelf(bool dimming); 47 void SetDimsShelf(bool dimming);
51 bool GetDimsShelf() const; 48 bool GetDimsShelf() const;
52 49
53 internal::ShelfLayoutManager* shelf_layout_manager() { 50 internal::ShelfLayoutManager* shelf_layout_manager() {
54 return shelf_layout_manager_; 51 return shelf_layout_manager_;
55 } 52 }
56 Launcher* launcher() const { return launcher_.get(); } 53 Launcher* launcher() const { return launcher_.get(); }
57 internal::StatusAreaWidget* status_area_widget() const { 54 internal::StatusAreaWidget* status_area_widget() const {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // during CloseChildWindows of the associated RootWindowController. 106 // during CloseChildWindows of the associated RootWindowController.
110 DelegateView* delegate_view_; 107 DelegateView* delegate_view_;
111 internal::BackgroundAnimator background_animator_; 108 internal::BackgroundAnimator background_animator_;
112 bool activating_as_fallback_; 109 bool activating_as_fallback_;
113 aura::Window* window_container_; 110 aura::Window* window_container_;
114 }; 111 };
115 112
116 } // namespace ash 113 } // namespace ash
117 114
118 #endif // ASH_SHELF_SHELF_WIDGET_H_ 115 #endif // ASH_SHELF_SHELF_WIDGET_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_types.h ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698