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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // Returns the extension identified by |app_id|. | 284 // Returns the extension identified by |app_id|. |
285 const extensions::Extension* GetExtensionForAppID( | 285 const extensions::Extension* GetExtensionForAppID( |
286 const std::string& app_id) const; | 286 const std::string& app_id) const; |
287 | 287 |
288 // Activates a |window|. If |allow_minimize| is true and the system allows | 288 // Activates a |window|. If |allow_minimize| is true and the system allows |
289 // it, the the window will get minimized instead. | 289 // it, the the window will get minimized instead. |
290 void ActivateWindowOrMinimizeIfActive(ui::BaseWindow* window, | 290 void ActivateWindowOrMinimizeIfActive(ui::BaseWindow* window, |
291 bool allow_minimize); | 291 bool allow_minimize); |
292 | 292 |
293 // ash::ShelfDelegate overrides: | 293 // ash::ShelfDelegate overrides: |
294 virtual void OnShelfCreated(ash::Shelf* shelf) OVERRIDE; | 294 virtual void OnShelfCreated(ash::Shelf* shelf) override; |
295 virtual void OnShelfDestroyed(ash::Shelf* shelf) OVERRIDE; | 295 virtual void OnShelfDestroyed(ash::Shelf* shelf) override; |
296 virtual ash::ShelfID GetShelfIDForAppID(const std::string& app_id) OVERRIDE; | 296 virtual ash::ShelfID GetShelfIDForAppID(const std::string& app_id) override; |
297 virtual const std::string& GetAppIDForShelfID(ash::ShelfID id) OVERRIDE; | 297 virtual const std::string& GetAppIDForShelfID(ash::ShelfID id) override; |
298 virtual void PinAppWithID(const std::string& app_id) OVERRIDE; | 298 virtual void PinAppWithID(const std::string& app_id) override; |
299 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE; | 299 virtual bool IsAppPinned(const std::string& app_id) override; |
300 virtual bool CanPin() const OVERRIDE; | 300 virtual bool CanPin() const override; |
301 virtual void UnpinAppWithID(const std::string& app_id) OVERRIDE; | 301 virtual void UnpinAppWithID(const std::string& app_id) override; |
302 | 302 |
303 // ash::ShelfModelObserver overrides: | 303 // ash::ShelfModelObserver overrides: |
304 virtual void ShelfItemAdded(int index) OVERRIDE; | 304 virtual void ShelfItemAdded(int index) override; |
305 virtual void ShelfItemRemoved(int index, ash::ShelfID id) OVERRIDE; | 305 virtual void ShelfItemRemoved(int index, ash::ShelfID id) override; |
306 virtual void ShelfItemMoved(int start_index, int target_index) OVERRIDE; | 306 virtual void ShelfItemMoved(int start_index, int target_index) override; |
307 virtual void ShelfItemChanged(int index, | 307 virtual void ShelfItemChanged(int index, |
308 const ash::ShelfItem& old_item) OVERRIDE; | 308 const ash::ShelfItem& old_item) override; |
309 virtual void ShelfStatusChanged() OVERRIDE; | 309 virtual void ShelfStatusChanged() override; |
310 | 310 |
311 // ash::ShellObserver overrides: | 311 // ash::ShellObserver overrides: |
312 virtual void OnShelfAlignmentChanged(aura::Window* root_window) OVERRIDE; | 312 virtual void OnShelfAlignmentChanged(aura::Window* root_window) override; |
313 | 313 |
314 // ash::DisplayController::Observer overrides: | 314 // ash::DisplayController::Observer overrides: |
315 virtual void OnDisplayConfigurationChanged() OVERRIDE; | 315 virtual void OnDisplayConfigurationChanged() override; |
316 | 316 |
317 // ExtensionRegistryObserver overrides: | 317 // ExtensionRegistryObserver overrides: |
318 virtual void OnExtensionLoaded( | 318 virtual void OnExtensionLoaded( |
319 content::BrowserContext* browser_context, | 319 content::BrowserContext* browser_context, |
320 const extensions::Extension* extension) OVERRIDE; | 320 const extensions::Extension* extension) override; |
321 virtual void OnExtensionUnloaded( | 321 virtual void OnExtensionUnloaded( |
322 content::BrowserContext* browser_context, | 322 content::BrowserContext* browser_context, |
323 const extensions::Extension* extension, | 323 const extensions::Extension* extension, |
324 extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE; | 324 extensions::UnloadedExtensionInfo::Reason reason) override; |
325 | 325 |
326 // PrefServiceSyncableObserver overrides: | 326 // PrefServiceSyncableObserver overrides: |
327 virtual void OnIsSyncingChanged() OVERRIDE; | 327 virtual void OnIsSyncingChanged() override; |
328 | 328 |
329 // AppSyncUIStateObserver overrides: | 329 // AppSyncUIStateObserver overrides: |
330 virtual void OnAppSyncUIStatusChanged() OVERRIDE; | 330 virtual void OnAppSyncUIStatusChanged() override; |
331 | 331 |
332 // ExtensionEnableFlowDelegate overrides: | 332 // ExtensionEnableFlowDelegate overrides: |
333 virtual void ExtensionEnableFlowFinished() OVERRIDE; | 333 virtual void ExtensionEnableFlowFinished() override; |
334 virtual void ExtensionEnableFlowAborted(bool user_initiated) OVERRIDE; | 334 virtual void ExtensionEnableFlowAborted(bool user_initiated) override; |
335 | 335 |
336 // extensions::AppIconLoader overrides: | 336 // extensions::AppIconLoader overrides: |
337 virtual void SetAppImage(const std::string& app_id, | 337 virtual void SetAppImage(const std::string& app_id, |
338 const gfx::ImageSkia& image) OVERRIDE; | 338 const gfx::ImageSkia& image) override; |
339 | 339 |
340 // ash::ShelfLayoutManagerObserver overrides: | 340 // ash::ShelfLayoutManagerObserver overrides: |
341 virtual void OnAutoHideBehaviorChanged( | 341 virtual void OnAutoHideBehaviorChanged( |
342 aura::Window* root_window, | 342 aura::Window* root_window, |
343 ash::ShelfAutoHideBehavior new_behavior) OVERRIDE; | 343 ash::ShelfAutoHideBehavior new_behavior) override; |
344 | 344 |
345 // Called when the active user has changed. | 345 // Called when the active user has changed. |
346 void ActiveUserChanged(const std::string& user_email); | 346 void ActiveUserChanged(const std::string& user_email); |
347 | 347 |
348 // Called when a user got added to the session. | 348 // Called when a user got added to the session. |
349 void AdditionalUserAddedToSession(Profile* profile); | 349 void AdditionalUserAddedToSession(Profile* profile); |
350 | 350 |
351 // Get the list of all running incarnations of this item. | 351 // Get the list of all running incarnations of this item. |
352 // |event_flags| specifies the flags which were set by the event which | 352 // |event_flags| specifies the flags which were set by the event which |
353 // triggered this menu generation. It can be used to generate different lists. | 353 // triggered this menu generation. It can be used to generate different lists. |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 // The list of running & un-pinned applications for different users on hidden | 604 // The list of running & un-pinned applications for different users on hidden |
605 // desktops. | 605 // desktops. |
606 typedef std::vector<std::string> RunningAppListIds; | 606 typedef std::vector<std::string> RunningAppListIds; |
607 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 607 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
608 RunningAppListIdMap last_used_running_application_order_; | 608 RunningAppListIdMap last_used_running_application_order_; |
609 | 609 |
610 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 610 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
611 }; | 611 }; |
612 | 612 |
613 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 613 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |