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

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

Issue 2462753002: Use Ash's ShelfWindowWatcher for app panel windows. (Closed)
Patch Set: Add ShelfWindowWatcherTest, remove ChromeLauncherControllerImplTest panel use. Created 4 years, 1 month 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
Index: ash/common/shelf/shelf_window_watcher.h
diff --git a/ash/common/shelf/shelf_window_watcher.h b/ash/common/shelf/shelf_window_watcher.h
index 45565e8f4b67f375d0109445f62bf5a321277683..d2dccf53dd32b081f841edf6b8303175bc4e2137 100644
--- a/ash/common/shelf/shelf_window_watcher.h
+++ b/ash/common/shelf/shelf_window_watcher.h
@@ -5,6 +5,8 @@
#ifndef ASH_COMMON_SHELF_SHELF_WINDOW_WATCHER_H_
#define ASH_COMMON_SHELF_SHELF_WINDOW_WATCHER_H_
+#include <set>
+
#include "ash/common/wm_activation_observer.h"
#include "ash/common/wm_window_observer.h"
#include "base/macros.h"
@@ -106,6 +108,9 @@ class ShelfWindowWatcher : public WmActivationObserver,
ScopedObserver<WmWindow, ContainerWindowObserver> observed_container_windows_;
ScopedObserver<WmWindow, UserWindowObserver> observed_user_windows_;
+ // The set of windows with shelf items managed by this ShelfWindowWatcher.
+ std::set<WmWindow*> managed_user_windows_;
James Cook 2016/11/02 17:53:43 I'm OK with this name, but what about user_windows
msw 2016/11/10 21:07:46 Done.
+
DISALLOW_COPY_AND_ASSIGN(ShelfWindowWatcher);
};

Powered by Google App Engine
This is Rietveld 408576698