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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.h

Issue 448493002: Avoiding double resize of maximized windows upon user switch due to showing and hiding of the shelf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shelf/shelf_widget.cc ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 377
378 // Returns the LauncherItemController of BrowserShortcut. 378 // Returns the LauncherItemController of BrowserShortcut.
379 BrowserShortcutLauncherItemController* 379 BrowserShortcutLauncherItemController*
380 GetBrowserShortcutLauncherItemController(); 380 GetBrowserShortcutLauncherItemController();
381 381
382 LauncherItemController* GetLauncherItemController(const ash::ShelfID id); 382 LauncherItemController* GetLauncherItemController(const ash::ShelfID id);
383 383
384 // Returns true if |browser| is owned by the active user. 384 // Returns true if |browser| is owned by the active user.
385 bool IsBrowserFromActiveUser(Browser* browser); 385 bool IsBrowserFromActiveUser(Browser* browser);
386 386
387 // Check if the shelf visibility (location, visibility) will change with a new
388 // user profile or not. However, since the full visibility calculation of the
389 // shelf cannot be performed here, this is only a probability used for
390 // animation predictions.
391 bool ShelfBoundsChangesProbablyWithUser(aura::Window* root_window,
392 const std::string& user_id) const;
393
387 // Access to the BrowserStatusMonitor for tests. 394 // Access to the BrowserStatusMonitor for tests.
388 BrowserStatusMonitor* browser_status_monitor_for_test() { 395 BrowserStatusMonitor* browser_status_monitor_for_test() {
389 return browser_status_monitor_.get(); 396 return browser_status_monitor_.get();
390 } 397 }
391 398
392 // Access to the AppWindowLauncherController for tests. 399 // Access to the AppWindowLauncherController for tests.
393 AppWindowLauncherController* app_window_controller_for_test() { 400 AppWindowLauncherController* app_window_controller_for_test() {
394 return app_window_controller_.get(); 401 return app_window_controller_.get();
395 } 402 }
396 403
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // The list of running & un-pinned applications for different users on hidden 601 // The list of running & un-pinned applications for different users on hidden
595 // desktops. 602 // desktops.
596 typedef std::vector<std::string> RunningAppListIds; 603 typedef std::vector<std::string> RunningAppListIds;
597 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; 604 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap;
598 RunningAppListIdMap last_used_running_application_order_; 605 RunningAppListIdMap last_used_running_application_order_;
599 606
600 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 607 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
601 }; 608 };
602 609
603 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 610 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_widget.cc ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698