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

Side by Side Diff: ash/shelf/shelf_widget.h

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 6 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
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('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 <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/common/shelf/shelf_types.h"
11 #include "ash/common/wm/background_animator.h" 12 #include "ash/common/wm/background_animator.h"
12 #include "ash/shelf/shelf_layout_manager_observer.h" 13 #include "ash/shelf/shelf_layout_manager_observer.h"
13 #include "ash/shelf/shelf_types.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "ui/views/widget/widget.h" 15 #include "ui/views/widget/widget.h"
16 #include "ui/views/widget/widget_observer.h" 16 #include "ui/views/widget/widget_observer.h"
17 17
18 namespace ash { 18 namespace ash {
19 class FocusCycler; 19 class FocusCycler;
20 class Shelf; 20 class Shelf;
21 class ShelfLayoutManager; 21 class ShelfLayoutManager;
22 class StatusAreaWidget; 22 class StatusAreaWidget;
23 class WmWindow; 23 class WmWindow;
24 class WorkspaceController; 24 class WorkspaceController;
25 25
26 class ASH_EXPORT ShelfWidget : public views::Widget, 26 class ASH_EXPORT ShelfWidget : public views::Widget,
27 public views::WidgetObserver, 27 public views::WidgetObserver,
28 public ShelfLayoutManagerObserver { 28 public ShelfLayoutManagerObserver {
29 public: 29 public:
30 ShelfWidget(WmWindow* wm_shelf_container, 30 ShelfWidget(WmWindow* wm_shelf_container,
31 WmWindow* wm_status_container, 31 WmWindow* wm_status_container,
32 WorkspaceController* workspace_controller); 32 WorkspaceController* workspace_controller);
33 ~ShelfWidget() override; 33 ~ShelfWidget() override;
34 34
35 // Returns if shelf alignment option is enabled, and the user is able to 35 // Returns if shelf alignment option is enabled, and the user is able to
36 // adjust the alignment (guest and supervised mode users cannot for example). 36 // adjust the alignment (guest and supervised mode users cannot for example).
37 static bool ShelfAlignmentAllowed(); 37 static bool ShelfAlignmentAllowed();
38 38
39 void OnShelfAlignmentChanged(); 39 void OnShelfAlignmentChanged();
40 wm::ShelfAlignment GetAlignment() const; 40 ShelfAlignment GetAlignment() const;
41 41
42 // Sets the shelf's background type. 42 // Sets the shelf's background type.
43 void SetPaintsBackground(wm::ShelfBackgroundType background_type, 43 void SetPaintsBackground(ShelfBackgroundType background_type,
44 BackgroundAnimatorChangeType change_type); 44 BackgroundAnimatorChangeType change_type);
45 wm::ShelfBackgroundType GetBackgroundType() const; 45 ShelfBackgroundType GetBackgroundType() const;
46 46
47 // Hide the shelf behind a black bar during e.g. a user transition when |hide| 47 // Hide the shelf behind a black bar during e.g. a user transition when |hide|
48 // is true. The |animation_time_ms| will be used as animation duration. 48 // is true. The |animation_time_ms| will be used as animation duration.
49 void HideShelfBehindBlackBar(bool hide, int animation_time_ms); 49 void HideShelfBehindBlackBar(bool hide, int animation_time_ms);
50 bool IsShelfHiddenBehindBlackBar() const; 50 bool IsShelfHiddenBehindBlackBar() const;
51 51
52 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized). 52 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized).
53 void SetDimsShelf(bool dimming); 53 void SetDimsShelf(bool dimming);
54 bool GetDimsShelf() const; 54 bool GetDimsShelf() const;
55 55
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 DelegateView* delegate_view_; 112 DelegateView* delegate_view_;
113 BackgroundAnimator background_animator_; 113 BackgroundAnimator background_animator_;
114 bool activating_as_fallback_; 114 bool activating_as_fallback_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); 116 DISALLOW_COPY_AND_ASSIGN(ShelfWidget);
117 }; 117 };
118 118
119 } // namespace ash 119 } // namespace ash
120 120
121 #endif // ASH_SHELF_SHELF_WIDGET_H_ 121 #endif // ASH_SHELF_SHELF_WIDGET_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698