OLD | NEW |
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 ash::ShelfModel* model(); | 251 ash::ShelfModel* model(); |
252 | 252 |
253 // Accessor to the currently loaded profile. Note that in multi profile use | 253 // Accessor to the currently loaded profile. Note that in multi profile use |
254 // cases this might change over time. | 254 // cases this might change over time. |
255 Profile* profile(); | 255 Profile* profile(); |
256 | 256 |
257 // Gets the shelf auto-hide behavior on |root_window|. | 257 // Gets the shelf auto-hide behavior on |root_window|. |
258 ash::ShelfAutoHideBehavior GetShelfAutoHideBehavior( | 258 ash::ShelfAutoHideBehavior GetShelfAutoHideBehavior( |
259 aura::Window* root_window) const; | 259 aura::Window* root_window) const; |
260 | 260 |
261 // Returns |true| if the user is allowed to modify the shelf auto-hide | |
262 // behavior on |root_window|. | |
263 bool CanUserModifyShelfAutoHideBehavior(aura::Window* root_window) const; | |
264 | |
265 // Toggles the shelf auto-hide behavior on |root_window|. Does nothing if the | 261 // Toggles the shelf auto-hide behavior on |root_window|. Does nothing if the |
266 // user is not allowed to modify the auto-hide behavior. | 262 // user is not allowed to modify the auto-hide behavior. |
267 void ToggleShelfAutoHideBehavior(aura::Window* root_window); | 263 void ToggleShelfAutoHideBehavior(aura::Window* root_window); |
268 | 264 |
269 // The tab no longer represents its previously identified application. | 265 // The tab no longer represents its previously identified application. |
270 void RemoveTabFromRunningApp(content::WebContents* tab, | 266 void RemoveTabFromRunningApp(content::WebContents* tab, |
271 const std::string& app_id); | 267 const std::string& app_id); |
272 | 268 |
273 // Notify the controller that the state of an non platform app's tabs | 269 // Notify the controller that the state of an non platform app's tabs |
274 // have changed, | 270 // have changed, |
(...skipping 18 matching lines...) Expand all Loading... |
293 // ash::ShelfDelegate overrides: | 289 // ash::ShelfDelegate overrides: |
294 virtual void OnLauncherCreated(ash::Launcher* launcher) OVERRIDE; | 290 virtual void OnLauncherCreated(ash::Launcher* launcher) OVERRIDE; |
295 virtual void OnLauncherDestroyed(ash::Launcher* launcher) OVERRIDE; | 291 virtual void OnLauncherDestroyed(ash::Launcher* launcher) OVERRIDE; |
296 virtual ash::LauncherID GetLauncherIDForAppID( | 292 virtual ash::LauncherID GetLauncherIDForAppID( |
297 const std::string& app_id) OVERRIDE; | 293 const std::string& app_id) OVERRIDE; |
298 virtual const std::string& GetAppIDForLauncherID(ash::LauncherID id) OVERRIDE; | 294 virtual const std::string& GetAppIDForLauncherID(ash::LauncherID id) OVERRIDE; |
299 virtual void PinAppWithID(const std::string& app_id) OVERRIDE; | 295 virtual void PinAppWithID(const std::string& app_id) OVERRIDE; |
300 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE; | 296 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE; |
301 virtual bool CanPin() const OVERRIDE; | 297 virtual bool CanPin() const OVERRIDE; |
302 virtual void UnpinAppWithID(const std::string& app_id) OVERRIDE; | 298 virtual void UnpinAppWithID(const std::string& app_id) OVERRIDE; |
| 299 virtual bool CanUserModifyShelfAutoHideBehavior( |
| 300 aura::Window* root_window) const OVERRIDE; |
303 | 301 |
304 // ash::ShelfModelObserver overrides: | 302 // ash::ShelfModelObserver overrides: |
305 virtual void ShelfItemAdded(int index) OVERRIDE; | 303 virtual void ShelfItemAdded(int index) OVERRIDE; |
306 virtual void ShelfItemRemoved(int index, ash::LauncherID id) OVERRIDE; | 304 virtual void ShelfItemRemoved(int index, ash::LauncherID id) OVERRIDE; |
307 virtual void ShelfItemMoved(int start_index, int target_index) OVERRIDE; | 305 virtual void ShelfItemMoved(int start_index, int target_index) OVERRIDE; |
308 virtual void ShelfItemChanged(int index, | 306 virtual void ShelfItemChanged(int index, |
309 const ash::LauncherItem& old_item) OVERRIDE; | 307 const ash::LauncherItem& old_item) OVERRIDE; |
310 virtual void ShelfStatusChanged() OVERRIDE; | 308 virtual void ShelfStatusChanged() OVERRIDE; |
311 | 309 |
312 // content::NotificationObserver overrides: | 310 // content::NotificationObserver overrides: |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 // If true, incoming pinned state changes should be ignored. | 582 // If true, incoming pinned state changes should be ignored. |
585 bool ignore_persist_pinned_state_change_; | 583 bool ignore_persist_pinned_state_change_; |
586 | 584 |
587 // True if each user has an own desktop. | 585 // True if each user has an own desktop. |
588 bool multi_profile_desktop_separation_; | 586 bool multi_profile_desktop_separation_; |
589 | 587 |
590 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 588 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
591 }; | 589 }; |
592 | 590 |
593 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 591 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |