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

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

Issue 2190773003: [ABANDONED] Simplify ash shelf dimmer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore an EventHandler object; fix behavior tests. 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/overflow_button.cc ('k') | ash/common/system/tray/tray_background_view.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
(...skipping 26 matching lines...) Expand all
37 virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0; 37 virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0;
38 38
39 virtual ShelfAutoHideState GetAutoHideState() const = 0; 39 virtual ShelfAutoHideState GetAutoHideState() const = 0;
40 40
41 // Invoke when the auto-hide state may have changed (for example, when the 41 // Invoke when the auto-hide state may have changed (for example, when the
42 // system tray bubble opens it should force the shelf to be visible). 42 // system tray bubble opens it should force the shelf to be visible).
43 virtual void UpdateAutoHideState() = 0; 43 virtual void UpdateAutoHideState() = 0;
44 44
45 virtual ShelfBackgroundType GetBackgroundType() const = 0; 45 virtual ShelfBackgroundType GetBackgroundType() const = 0;
46 46
47 // Shelf items are slightly dimmed (e.g. when a window is maximized).
48 virtual bool IsDimmed() const = 0;
49
50 // Whether the shelf item overflow bubble is visible. 47 // Whether the shelf item overflow bubble is visible.
51 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common. 48 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common.
52 // http://crbug.com/615155 49 // http://crbug.com/615155
53 virtual bool IsShowingOverflowBubble() const = 0; 50 virtual bool IsShowingOverflowBubble() const = 0;
54 51
55 // Schedules a repaint for all shelf buttons. 52 // Schedules a repaint for all shelf buttons.
56 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common. 53 // TODO(jamescook): Eliminate when ShelfView moves to //ash/common.
57 // http://crbug.com/615155 54 // http://crbug.com/615155
58 virtual void SchedulePaint() = 0; 55 virtual void SchedulePaint() = 0;
59 56
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual ShelfLockingManager* GetShelfLockingManagerForTesting() = 0; 93 virtual ShelfLockingManager* GetShelfLockingManagerForTesting() = 0;
97 virtual ShelfView* GetShelfViewForTesting() = 0; 94 virtual ShelfView* GetShelfViewForTesting() = 0;
98 95
99 protected: 96 protected:
100 virtual ~WmShelf() {} 97 virtual ~WmShelf() {}
101 }; 98 };
102 99
103 } // namespace ash 100 } // namespace ash
104 101
105 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ 102 #endif // ASH_COMMON_SHELF_WM_SHELF_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/overflow_button.cc ('k') | ash/common/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698