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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void Unpin(ash::ShelfID id) override; | 74 void Unpin(ash::ShelfID id) override; |
75 bool IsPinned(ash::ShelfID id) override; | 75 bool IsPinned(ash::ShelfID id) override; |
76 void TogglePinned(ash::ShelfID id) override; | 76 void TogglePinned(ash::ShelfID id) override; |
77 void LockV1AppWithID(const std::string& app_id) override; | 77 void LockV1AppWithID(const std::string& app_id) override; |
78 void UnlockV1AppWithID(const std::string& app_id) override; | 78 void UnlockV1AppWithID(const std::string& app_id) override; |
79 void Launch(ash::ShelfID id, int event_flags) override; | 79 void Launch(ash::ShelfID id, int event_flags) override; |
80 void Close(ash::ShelfID id) override; | 80 void Close(ash::ShelfID id) override; |
81 bool IsOpen(ash::ShelfID id) override; | 81 bool IsOpen(ash::ShelfID id) override; |
82 bool IsPlatformApp(ash::ShelfID id) override; | 82 bool IsPlatformApp(ash::ShelfID id) override; |
83 void ActivateApp(const std::string& app_id, | 83 void ActivateApp(const std::string& app_id, |
84 ash::LaunchSource source, | 84 ash::ShelfLaunchSource source, |
85 int event_flags) override; | 85 int event_flags) override; |
86 void SetLauncherItemImage(ash::ShelfID shelf_id, | 86 void SetLauncherItemImage(ash::ShelfID shelf_id, |
87 const gfx::ImageSkia& image) override; | 87 const gfx::ImageSkia& image) override; |
88 void UpdateAppState(content::WebContents* contents, | 88 void UpdateAppState(content::WebContents* contents, |
89 AppState app_state) override; | 89 AppState app_state) override; |
90 ash::ShelfID GetShelfIDForWebContents( | 90 ash::ShelfID GetShelfIDForWebContents( |
91 content::WebContents* contents) override; | 91 content::WebContents* contents) override; |
92 void SetRefocusURLPatternForTest(ash::ShelfID id, const GURL& url) override; | 92 void SetRefocusURLPatternForTest(ash::ShelfID id, const GURL& url) override; |
93 ash::ShelfItemDelegate::PerformedAction ActivateWindowOrMinimizeIfActive( | 93 ash::ShelfAction ActivateWindowOrMinimizeIfActive( |
94 ui::BaseWindow* window, | 94 ui::BaseWindow* window, |
95 bool allow_minimize) override; | 95 bool allow_minimize) override; |
96 void ActiveUserChanged(const std::string& user_email) override; | 96 void ActiveUserChanged(const std::string& user_email) override; |
97 void AdditionalUserAddedToSession(Profile* profile) override; | 97 void AdditionalUserAddedToSession(Profile* profile) override; |
98 ash::ShelfAppMenuItemList GetAppMenuItems(const ash::ShelfItem& item, | 98 ash::ShelfAppMenuItemList GetAppMenuItems(const ash::ShelfItem& item, |
99 int event_flags) override; | 99 int event_flags) override; |
100 std::vector<content::WebContents*> GetV1ApplicationsFromAppId( | 100 std::vector<content::WebContents*> GetV1ApplicationsFromAppId( |
101 const std::string& app_id) override; | 101 const std::string& app_id) override; |
102 void ActivateShellApp(const std::string& app_id, int window_index) override; | 102 void ActivateShellApp(const std::string& app_id, int window_index) override; |
103 bool IsWebContentHandledByApplication(content::WebContents* web_contents, | 103 bool IsWebContentHandledByApplication(content::WebContents* web_contents, |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 typedef std::vector<std::string> RunningAppListIds; | 315 typedef std::vector<std::string> RunningAppListIds; |
316 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 316 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
317 RunningAppListIdMap last_used_running_application_order_; | 317 RunningAppListIdMap last_used_running_application_order_; |
318 | 318 |
319 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; | 319 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; |
320 | 320 |
321 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); | 321 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); |
322 }; | 322 }; |
323 | 323 |
324 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 324 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
OLD | NEW |