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

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

Issue 2104593002: ash: Remove WmShelf::ForPrimaryDisplay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/shelf/wm_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_SHELF_WM_SHELF_H_ 5 #ifndef ASH_COMMON_SHELF_WM_SHELF_H_
6 #define ASH_COMMON_SHELF_WM_SHELF_H_ 6 #define ASH_COMMON_SHELF_WM_SHELF_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/shelf/shelf_types.h" 9 #include "ash/common/shelf/shelf_types.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Rect; 12 class Rect;
13 } 13 }
14 14
15 namespace ui { 15 namespace ui {
16 class GestureEvent; 16 class GestureEvent;
17 class MouseEvent; 17 class MouseEvent;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21 21
22 class WmShelfObserver; 22 class WmShelfObserver;
23 class WmWindow; 23 class WmWindow;
24 24
25 // Used for accessing global state. 25 // Used for accessing global state.
26 class ASH_EXPORT WmShelf { 26 class ASH_EXPORT WmShelf {
27 public: 27 public:
28 // Returns the shelf for the primary display. Useful in tests that only use
29 // a single display. In production code use WmRootWindowController::GetShelf()
30 // with the appropriate display's root window controller.
31 static WmShelf* ForPrimaryDisplay();
32
33 // Returns the window showing the shelf. 28 // Returns the window showing the shelf.
34 virtual WmWindow* GetWindow() = 0; 29 virtual WmWindow* GetWindow() = 0;
35 30
36 virtual ShelfAlignment GetAlignment() const = 0; 31 virtual ShelfAlignment GetAlignment() const = 0;
37 virtual void SetAlignment(ShelfAlignment alignment) = 0; 32 virtual void SetAlignment(ShelfAlignment alignment) = 0;
38 33
39 virtual ShelfAutoHideBehavior GetAutoHideBehavior() const = 0; 34 virtual ShelfAutoHideBehavior GetAutoHideBehavior() const = 0;
40 virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0; 35 virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0;
41 36
42 virtual ShelfAutoHideState GetAutoHideState() const = 0; 37 virtual ShelfAutoHideState GetAutoHideState() const = 0;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Simulates a virtual keyboard bounds update. 74 // Simulates a virtual keyboard bounds update.
80 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0; 75 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0;
81 76
82 protected: 77 protected:
83 virtual ~WmShelf() {} 78 virtual ~WmShelf() {}
84 }; 79 };
85 80
86 } // namespace ash 81 } // namespace ash
87 82
88 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ 83 #endif // ASH_COMMON_SHELF_WM_SHELF_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/shelf/wm_shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698