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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h

Issue 14328031: Adding a minimize function for clicks on launcher items if only a single item (already active) is a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added bounce animation in case of no minimize Created 7 years, 8 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/ash/launcher/chrome_launcher_controller_per_app.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h
index f5a1338e8990ff8e53e2e5c6b58a7eb93990e3e6..8f2a078a08ae67237a969bb4dd83f17f1af8eb8e 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h
@@ -35,6 +35,7 @@
#include "ui/aura/window_observer.h"
class AppSyncUIState;
+class BaseWindow;
class Browser;
class BrowserLauncherItemControllerTest;
class ExtensionEnableFlow;
@@ -252,6 +253,11 @@ class ChromeLauncherControllerPerApp
virtual const extensions::Extension* GetExtensionForAppID(
const std::string& app_id) const OVERRIDE;
+ // Activates a |window|. If |allow_minimize| is true and the system allows
+ // it, the the window will get minimized instead.
+ virtual void ActivateWindowOrMinimizeIfActive(BaseWindow* window,
+ bool allow_minimize) OVERRIDE;
+
// ash::LauncherDelegate overrides:
virtual void OnBrowserShortcutClicked(int event_flags) OVERRIDE;
virtual void ItemClicked(const ash::LauncherItem& item,

Powered by Google App Engine
This is Rietveld 408576698