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

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

Issue 2268823002: mash: Move more shelf files to ash/common/shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. Created 4 years, 4 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/common/shelf/DEPS ('k') | ash/common/shelf/shelf.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_H_ 5 #ifndef ASH_COMMON_SHELF_SHELF_H_
6 #define ASH_SHELF_SHELF_H_ 6 #define ASH_COMMON_SHELF_SHELF_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/common/shelf/shelf_constants.h" 13 #include "ash/common/shelf/shelf_constants.h"
14 #include "ash/common/shelf/shelf_locking_manager.h" 14 #include "ash/common/shelf/shelf_locking_manager.h"
15 #include "ash/common/shelf/shelf_types.h" 15 #include "ash/common/shelf/shelf_types.h"
16 #include "ash/shelf/shelf_widget.h" 16 #include "ash/common/shelf/shelf_widget.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "ui/gfx/geometry/size.h" 18 #include "ui/gfx/geometry/size.h"
19 #include "ui/views/widget/widget_observer.h" 19 #include "ui/views/widget/widget_observer.h"
20 20
21 namespace app_list { 21 namespace app_list {
22 class ApplicationDragAndDropHost; 22 class ApplicationDragAndDropHost;
23 } 23 }
24 24
25 namespace gfx { 25 namespace gfx {
26 class Rect; 26 class Rect;
(...skipping 23 matching lines...) Expand all
50 ~Shelf(); 50 ~Shelf();
51 51
52 // Return the shelf for the primary display. NULL if no user is logged in yet. 52 // Return the shelf for the primary display. NULL if no user is logged in yet.
53 // Useful for tests. For production code use ForWindow() because the user may 53 // Useful for tests. For production code use ForWindow() because the user may
54 // have multiple displays. 54 // have multiple displays.
55 static Shelf* ForPrimaryDisplay(); 55 static Shelf* ForPrimaryDisplay();
56 56
57 // Return the shelf for the display that |window| is currently on, or a shelf 57 // Return the shelf for the display that |window| is currently on, or a shelf
58 // on primary display if the shelf per display feature is disabled. NULL if no 58 // on primary display if the shelf per display feature is disabled. NULL if no
59 // user is logged in yet. 59 // user is logged in yet.
60 static Shelf* ForWindow(const WmWindow* window); 60 static Shelf* ForWindow(WmWindow* window);
61 61
62 // DEPRECATED. Use WmShelf::GetAlignment() and SetAlignment(). 62 // DEPRECATED. Use WmShelf::GetAlignment() and SetAlignment().
63 void SetAlignment(ShelfAlignment alignment); 63 void SetAlignment(ShelfAlignment alignment);
64 ShelfAlignment alignment() const { return alignment_; } 64 ShelfAlignment alignment() const { return alignment_; }
65 65
66 // Sets the ShelfAutoHideBehavior. See enum description for details. 66 // Sets the ShelfAutoHideBehavior. See enum description for details.
67 // DEPRECATED. Use WmShelf::GetAutoHideBehavior() and SetAutoHideBehavior(). 67 // DEPRECATED. Use WmShelf::GetAutoHideBehavior() and SetAutoHideBehavior().
68 void SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide_behavior); 68 void SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide_behavior);
69 ShelfAutoHideBehavior auto_hide_behavior() const { 69 ShelfAutoHideBehavior auto_hide_behavior() const {
70 return auto_hide_behavior_; 70 return auto_hide_behavior_;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ShelfLockingManager shelf_locking_manager_; 128 ShelfLockingManager shelf_locking_manager_;
129 129
130 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; 130 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM;
131 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; 131 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER;
132 132
133 DISALLOW_COPY_AND_ASSIGN(Shelf); 133 DISALLOW_COPY_AND_ASSIGN(Shelf);
134 }; 134 };
135 135
136 } // namespace ash 136 } // namespace ash
137 137
138 #endif // ASH_SHELF_SHELF_H_ 138 #endif // ASH_COMMON_SHELF_SHELF_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/DEPS ('k') | ash/common/shelf/shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698