| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 ~AppShortcutLauncherItemController() override; | 34 ~AppShortcutLauncherItemController() override; |
| 35 | 35 |
| 36 static AppShortcutLauncherItemController* Create( | 36 static AppShortcutLauncherItemController* Create( |
| 37 const std::string& app_id, | 37 const std::string& app_id, |
| 38 const std::string& launch_id, | 38 const std::string& launch_id, |
| 39 ChromeLauncherController* controller); | 39 ChromeLauncherController* controller); |
| 40 | 40 |
| 41 std::vector<content::WebContents*> GetRunningApplications(); | 41 std::vector<content::WebContents*> GetRunningApplications(); |
| 42 | 42 |
| 43 // LauncherItemController overrides: | 43 // LauncherItemController overrides: |
| 44 bool IsVisible() const override; | |
| 45 void Launch(ash::LaunchSource source, int event_flags) override; | 44 void Launch(ash::LaunchSource source, int event_flags) override; |
| 46 ash::ShelfItemDelegate::PerformedAction Activate( | 45 ash::ShelfItemDelegate::PerformedAction Activate( |
| 47 ash::LaunchSource source) override; | 46 ash::LaunchSource source) override; |
| 48 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override; | 47 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override; |
| 49 ash::ShelfItemDelegate::PerformedAction ItemSelected( | 48 ash::ShelfItemDelegate::PerformedAction ItemSelected( |
| 50 const ui::Event& event) override; | 49 const ui::Event& event) override; |
| 51 ash::ShelfMenuModel* CreateApplicationMenu(int event_flags) override; | 50 ash::ShelfMenuModel* CreateApplicationMenu(int event_flags) override; |
| 52 void Close() override; | 51 void Close() override; |
| 53 | 52 |
| 54 // Get the refocus url pattern, which can be used to identify this application | 53 // Get the refocus url pattern, which can be used to identify this application |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Since V2 applications can be undetectable after launching, this timer is | 97 // Since V2 applications can be undetectable after launching, this timer is |
| 99 // keeping track of the last launch attempt. | 98 // keeping track of the last launch attempt. |
| 100 base::Time last_launch_attempt_; | 99 base::Time last_launch_attempt_; |
| 101 | 100 |
| 102 ChromeLauncherController* chrome_launcher_controller_; | 101 ChromeLauncherController* chrome_launcher_controller_; |
| 103 | 102 |
| 104 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); | 103 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
H_ | 106 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
H_ |
| OLD | NEW |