Index: chrome/browser/ui/views/app_list/win/activation_tracker_win.h |
diff --git a/chrome/browser/ui/views/app_list/win/activation_tracker_win.h b/chrome/browser/ui/views/app_list/win/activation_tracker_win.h |
index 1fed8d466c16e517dee37ea28998a32aa4c91767..e3476241454b25aaab14934741118d8800993f6f 100644 |
--- a/chrome/browser/ui/views/app_list/win/activation_tracker_win.h |
+++ b/chrome/browser/ui/views/app_list/win/activation_tracker_win.h |
@@ -5,16 +5,20 @@ |
#ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_ACTIVATION_TRACKER_WIN_H_ |
#define CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_ACTIVATION_TRACKER_WIN_H_ |
-#include "base/macros.h" |
+#include "base/basictypes.h" |
+#include "base/callback.h" |
#include "base/timer/timer.h" |
#include "ui/app_list/views/app_list_view_observer.h" |
-class AppListServiceWin; |
+namespace app_list { |
+class AppListView; |
+} |
// Periodically checks to see if an AppListView has lost focus using a timer. |
class ActivationTrackerWin : public app_list::AppListViewObserver { |
public: |
- explicit ActivationTrackerWin(AppListServiceWin* service); |
+ ActivationTrackerWin(app_list::AppListView* view, |
+ const base::Closure& on_should_dismiss); |
~ActivationTrackerWin(); |
// app_list::AppListViewObserver: |
@@ -33,7 +37,11 @@ |
// app list). |
bool ShouldDismissAppList(); |
- AppListServiceWin* service_; // Weak. Owns this. |
+ // The window to track the active state of. |
+ app_list::AppListView* view_; |
+ |
+ // Called to request |view_| be closed. |
+ base::Closure on_should_dismiss_; |
// Records whether, on the previous timer tick, the taskbar had focus without |
// the right mouse button being down. We allow the taskbar to have focus for |