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

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

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests 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
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/wm/background_animator.h" 11 #include "ash/common/wm/background_animator.h"
12 #include "ash/shelf/shelf_layout_manager_observer.h" 12 #include "ash/shelf/shelf_layout_manager_observer.h"
13 #include "ash/shelf/shelf_types.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 WorkspaceController; 24 class WorkspaceController;
24 namespace wm {
25 class WmWindow;
26 }
27 25
28 class ASH_EXPORT ShelfWidget : public views::Widget, 26 class ASH_EXPORT ShelfWidget : public views::Widget,
29 public views::WidgetObserver, 27 public views::WidgetObserver,
30 public ShelfLayoutManagerObserver { 28 public ShelfLayoutManagerObserver {
31 public: 29 public:
32 ShelfWidget(wm::WmWindow* wm_shelf_container, 30 ShelfWidget(WmWindow* wm_shelf_container,
33 wm::WmWindow* wm_status_container, 31 WmWindow* wm_status_container,
34 WorkspaceController* workspace_controller); 32 WorkspaceController* workspace_controller);
35 ~ShelfWidget() override; 33 ~ShelfWidget() override;
36 34
37 // 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
38 // adjust the alignment (guest and supervised mode users cannot for example). 36 // adjust the alignment (guest and supervised mode users cannot for example).
39 static bool ShelfAlignmentAllowed(); 37 static bool ShelfAlignmentAllowed();
40 38
41 void OnShelfAlignmentChanged(); 39 void OnShelfAlignmentChanged();
42 wm::ShelfAlignment GetAlignment() const; 40 wm::ShelfAlignment GetAlignment() const;
43 41
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 DelegateView* delegate_view_; 112 DelegateView* delegate_view_;
115 BackgroundAnimator background_animator_; 113 BackgroundAnimator background_animator_;
116 bool activating_as_fallback_; 114 bool activating_as_fallback_;
117 115
118 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); 116 DISALLOW_COPY_AND_ASSIGN(ShelfWidget);
119 }; 117 };
120 118
121 } // namespace ash 119 } // namespace ash
122 120
123 #endif // ASH_SHELF_SHELF_WIDGET_H_ 121 #endif // ASH_SHELF_SHELF_WIDGET_H_
OLDNEW
« ash/common/wm_window.h ('K') | « ash/shelf/shelf_view.cc ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698