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

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

Issue 1881263002: Generalize support for per-display shelf prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use PrefService instead of Profile for pref functions. Created 4 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 unified diff | Download patch
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 <memory> 10 #include <memory>
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 LauncherItemController* GetLauncherItemController(const ash::ShelfID id); 359 LauncherItemController* GetLauncherItemController(const ash::ShelfID id);
360 360
361 // Returns true if |browser| is owned by the active user. 361 // Returns true if |browser| is owned by the active user.
362 bool IsBrowserFromActiveUser(Browser* browser); 362 bool IsBrowserFromActiveUser(Browser* browser);
363 363
364 // Check if the shelf visibility (location, visibility) will change with a new 364 // Check if the shelf visibility (location, visibility) will change with a new
365 // user profile or not. However, since the full visibility calculation of the 365 // user profile or not. However, since the full visibility calculation of the
366 // shelf cannot be performed here, this is only a probability used for 366 // shelf cannot be performed here, this is only a probability used for
367 // animation predictions. 367 // animation predictions.
368 bool ShelfBoundsChangesProbablyWithUser(aura::Window* root_window, 368 bool ShelfBoundsChangesProbablyWithUser(ash::Shelf* shelf,
369 const std::string& user_id) const; 369 const std::string& user_id) const;
370 370
371 // Called when the user profile is fully loaded and ready to switch to. 371 // Called when the user profile is fully loaded and ready to switch to.
372 void OnUserProfileReadyToSwitch(Profile* profile); 372 void OnUserProfileReadyToSwitch(Profile* profile);
373 373
374 // Access to the BrowserStatusMonitor for tests. 374 // Access to the BrowserStatusMonitor for tests.
375 BrowserStatusMonitor* browser_status_monitor_for_test() { 375 BrowserStatusMonitor* browser_status_monitor_for_test() {
376 return browser_status_monitor_.get(); 376 return browser_status_monitor_.get();
377 } 377 }
378 378
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 // The list of running & un-pinned applications for different users on hidden 576 // The list of running & un-pinned applications for different users on hidden
577 // desktops. 577 // desktops.
578 typedef std::vector<std::string> RunningAppListIds; 578 typedef std::vector<std::string> RunningAppListIds;
579 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; 579 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap;
580 RunningAppListIdMap last_used_running_application_order_; 580 RunningAppListIdMap last_used_running_application_order_;
581 581
582 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 582 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
583 }; 583 };
584 584
585 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 585 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_launcher_prefs.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