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

Unified Diff: ash/shelf/app_list_button.h

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Removed header include in shell.h that was causing gn check failure. Created 3 years, 6 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/root_window_controller.cc ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/app_list_button.h
diff --git a/ash/shelf/app_list_button.h b/ash/shelf/app_list_button.h
index 02c69c22807a47f39985515746ba186897246e25..fa9a35b390b349d066ff5330cca90e2b61597ad8 100644
--- a/ash/shelf/app_list_button.h
+++ b/ash/shelf/app_list_button.h
@@ -8,6 +8,7 @@
#include <memory>
#include "ash/ash_export.h"
+#include "ash/shell_observer.h"
#include "base/macros.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/views/controls/button/image_button.h"
@@ -18,7 +19,8 @@ class Shelf;
class ShelfView;
// Button used for the AppList icon on the shelf.
-class ASH_EXPORT AppListButton : public views::ImageButton {
+class ASH_EXPORT AppListButton : public views::ImageButton,
+ public ShellObserver {
public:
AppListButton(InkDropButtonListener* listener,
ShelfView* shelf_view,
@@ -55,6 +57,10 @@ class ASH_EXPORT AppListButton : public views::ImageButton {
// ink drops.
gfx::Point GetCenterPoint() const;
+ // ShellObserver overrides:
+ void OnAppListVisibilityChanged(bool shown,
+ aura::Window* root_window) override;
+
// True if the app list is currently showing for this display.
// This is useful because other IsApplistVisible functions aren't per-display.
bool is_showing_app_list_;
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698