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

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

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: comment Created 4 years, 7 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"
(...skipping 21 matching lines...) Expand all
32 ShelfWidget(aura::Window* shelf_container, 32 ShelfWidget(aura::Window* shelf_container,
33 aura::Window* status_container, 33 aura::Window* status_container,
34 WorkspaceController* workspace_controller); 34 WorkspaceController* workspace_controller);
35 ~ShelfWidget() override; 35 ~ShelfWidget() override;
36 36
37 // Returns if shelf alignment option is enabled, and the user is able to 37 // 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). 38 // adjust the alignment (guest and supervised mode users cannot for example).
39 static bool ShelfAlignmentAllowed(); 39 static bool ShelfAlignmentAllowed();
40 40
41 void OnShelfAlignmentChanged(); 41 void OnShelfAlignmentChanged();
42 ShelfAlignment GetAlignment() const; 42 wm::ShelfAlignment GetAlignment() const;
43 43
44 // Sets the shelf's background type. 44 // Sets the shelf's background type.
45 void SetPaintsBackground(ShelfBackgroundType background_type, 45 void SetPaintsBackground(wm::ShelfBackgroundType background_type,
46 BackgroundAnimatorChangeType change_type); 46 BackgroundAnimatorChangeType change_type);
47 ShelfBackgroundType GetBackgroundType() const; 47 wm::ShelfBackgroundType GetBackgroundType() const;
48 48
49 // Hide the shelf behind a black bar during e.g. a user transition when |hide| 49 // Hide the shelf behind a black bar during e.g. a user transition when |hide|
50 // is true. The |animation_time_ms| will be used as animation duration. 50 // is true. The |animation_time_ms| will be used as animation duration.
51 void HideShelfBehindBlackBar(bool hide, int animation_time_ms); 51 void HideShelfBehindBlackBar(bool hide, int animation_time_ms);
52 bool IsShelfHiddenBehindBlackBar() const; 52 bool IsShelfHiddenBehindBlackBar() const;
53 53
54 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized). 54 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized).
55 void SetDimsShelf(bool dimming); 55 void SetDimsShelf(bool dimming);
56 bool GetDimsShelf() const; 56 bool GetDimsShelf() const;
57 57
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // during CloseChildWindows of the associated RootWindowController. 109 // during CloseChildWindows of the associated RootWindowController.
110 DelegateView* delegate_view_; 110 DelegateView* delegate_view_;
111 BackgroundAnimator background_animator_; 111 BackgroundAnimator background_animator_;
112 bool activating_as_fallback_; 112 bool activating_as_fallback_;
113 aura::Window* window_container_; 113 aura::Window* window_container_;
114 }; 114 };
115 115
116 } // namespace ash 116 } // namespace ash
117 117
118 #endif // ASH_SHELF_SHELF_WIDGET_H_ 118 #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