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

Unified Diff: chrome/browser/ui/views/app_list/win/activation_tracker_win.h

Issue 226283003: Remove single-window-metro-mode code paths for the app launcher and apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thought I deleted this already Created 6 years, 9 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
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 e043dea7a418f0e3d8ae2dcaef68f613d3f83cf4..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
@@ -21,10 +21,6 @@ class ActivationTrackerWin : public app_list::AppListViewObserver {
const base::Closure& on_should_dismiss);
~ActivationTrackerWin();
- void ReactivateOnNextFocusLoss() {
- reactivate_on_next_focus_loss_ = true;
- }
-
// app_list::AppListViewObserver:
virtual void OnActivationChanged(views::Widget* widget, bool active) OVERRIDE;
@@ -32,9 +28,7 @@ class ActivationTrackerWin : public app_list::AppListViewObserver {
private:
// Dismisses the app launcher if it has lost focus and the user is not trying
- // to pin it. If it is time to dismiss the app launcher, but
- // ReactivateOnNextFocusLoss has been called, reactivates the app launcher
- // instead of dismissing it.
+ // to pin it.
void MaybeDismissAppList();
// Determines whether the app launcher should be dismissed. This should be
@@ -49,11 +43,6 @@ class ActivationTrackerWin : public app_list::AppListViewObserver {
// Called to request |view_| be closed.
base::Closure on_should_dismiss_;
- // True if we are anticipating that the app list will lose focus, and we want
- // to take it back. This is used when switching out of Metro mode, and the
- // browser regains focus after showing the app list.
- bool reactivate_on_next_focus_loss_;
-
// 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
// one tick before dismissing the app list. This allows the app list to be

Powered by Google App Engine
This is Rietveld 408576698