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

Unified Diff: ash/common/shelf/wm_dimmer_view.h

Issue 2235513002: mash shelf: Don't create shelf DimmerView in ShelfWidget on mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/aura/wm_shelf_aura.cc ('k') | ash/common/shelf/wm_shelf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/wm_dimmer_view.h
diff --git a/ash/common/shelf/wm_dimmer_view.h b/ash/common/shelf/wm_dimmer_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..379d3722b9fad1725de6d1f8d082c36960c07d29
--- /dev/null
+++ b/ash/common/shelf/wm_dimmer_view.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_SHELF_WM_DIMMER_VIEW_H_
+#define ASH_COMMON_SHELF_WM_DIMMER_VIEW_H_
+
+namespace views {
+class Widget;
+}
+
+namespace ash {
+
+// An interface around a widget and view that dim shelf items slightly when a
+// window is maximized and visible. See DimmerView for details. This interface
+// exists to avoid dependencies between ash common shelf code and the aura-only
+// implementation of DimmerView.
+// TODO(jamescook): Delete this after material design ships, as MD will not
+// require shelf dimming. http://crbug.com/614453
+class WmDimmerView {
+ public:
+ // Returns the widget that holds the dimmer view.
+ virtual views::Widget* GetDimmerWidget() = 0;
+
+ // Force the dimmer to be undimmed (e.g. by an open context menu).
+ virtual void ForceUndimming(bool force) = 0;
+
+ // Returns the current alpha used by the dimming bar.
+ virtual int GetDimmingAlphaForTest() = 0;
+
+ protected:
+ virtual ~WmDimmerView() {}
+};
+
+} // namespace ash
+
+#endif // ASH_COMMON_SHELF_WM_DIMMER_VIEW_H_
« no previous file with comments | « ash/aura/wm_shelf_aura.cc ('k') | ash/common/shelf/wm_shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698