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

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

Issue 2164733002: mash: Convert ash shelf overflow bubble to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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/common/shelf/overflow_button.cc ('k') | ash/mus/bridge/wm_shelf_mus.h » ('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
(...skipping 27 matching lines...) Expand all
38 38
39 // Invoke when the auto-hide state may have changed (for example, when the 39 // Invoke when the auto-hide state may have changed (for example, when the
40 // system tray bubble opens it should force the shelf to be visible). 40 // system tray bubble opens it should force the shelf to be visible).
41 virtual void UpdateAutoHideState() = 0; 41 virtual void UpdateAutoHideState() = 0;
42 42
43 virtual ShelfBackgroundType GetBackgroundType() const = 0; 43 virtual ShelfBackgroundType GetBackgroundType() const = 0;
44 44
45 // Shelf items are slightly dimmed (e.g. when a window is maximized). 45 // Shelf items are slightly dimmed (e.g. when a window is maximized).
46 virtual bool IsDimmed() const = 0; 46 virtual bool IsDimmed() const = 0;
47 47
48 // Whether the shelf item overflow bubble is visible.
49 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common.
50 // http://crbug.com/615155
51 virtual bool IsShowingOverflowBubble() const = 0;
52
53 // Schedules a repaint for all shelf buttons.
54 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common.
55 // http://crbug.com/615155
56 virtual void SchedulePaint() = 0;
57
48 // Whether the shelf view is visible. 58 // Whether the shelf view is visible.
49 // TODO(jamescook): Consolidate this with GetVisibilityState(). 59 // TODO(jamescook): Consolidate this with GetVisibilityState().
50 virtual bool IsVisible() const = 0; 60 virtual bool IsVisible() const = 0;
51 61
52 virtual void UpdateVisibilityState() = 0; 62 virtual void UpdateVisibilityState() = 0;
53 63
54 virtual ShelfVisibilityState GetVisibilityState() const = 0; 64 virtual ShelfVisibilityState GetVisibilityState() const = 0;
55 65
56 // Returns the ideal bounds of the shelf assuming it is visible. 66 // Returns the ideal bounds of the shelf assuming it is visible.
57 virtual gfx::Rect GetIdealBounds() = 0; 67 virtual gfx::Rect GetIdealBounds() = 0;
(...skipping 23 matching lines...) Expand all
81 // Simulates a virtual keyboard bounds update. 91 // Simulates a virtual keyboard bounds update.
82 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0; 92 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0;
83 93
84 protected: 94 protected:
85 virtual ~WmShelf() {} 95 virtual ~WmShelf() {}
86 }; 96 };
87 97
88 } // namespace ash 98 } // namespace ash
89 99
90 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ 100 #endif // ASH_COMMON_SHELF_WM_SHELF_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/overflow_button.cc ('k') | ash/mus/bridge/wm_shelf_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698