| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 72                             const URLPattern& refocus_pattern, | 72                             const URLPattern& refocus_pattern, | 
| 73                             content::WebContents* web_contents, | 73                             content::WebContents* web_contents, | 
| 74                             Browser* browser); | 74                             Browser* browser); | 
| 75 | 75 | 
| 76   // Activate the browser with the given |content| and show the associated tab. | 76   // Activate the browser with the given |content| and show the associated tab. | 
| 77   // Returns the action performed by activating the content. | 77   // Returns the action performed by activating the content. | 
| 78   ash::ShelfItemDelegate::PerformedAction ActivateContent( | 78   ash::ShelfItemDelegate::PerformedAction ActivateContent( | 
| 79       content::WebContents* content); | 79       content::WebContents* content); | 
| 80 | 80 | 
| 81   // Advance to the next item if an owned item is already active. The function | 81   // Advance to the next item if an owned item is already active. The function | 
| 82   // will return true if it has sucessfully advanced. | 82   // will return true if it has successfully advanced. | 
| 83   bool AdvanceToNextApp(); | 83   bool AdvanceToNextApp(); | 
| 84 | 84 | 
| 85   // Returns true if the application is a V2 app. | 85   // Returns true if the application is a V2 app. | 
| 86   bool IsV2App(); | 86   bool IsV2App(); | 
| 87 | 87 | 
| 88   // Returns true if it is allowed to try starting a V2 app again. | 88   // Returns true if it is allowed to try starting a V2 app again. | 
| 89   bool AllowNextLaunchAttempt(); | 89   bool AllowNextLaunchAttempt(); | 
| 90 | 90 | 
| 91   GURL refocus_url_; | 91   GURL refocus_url_; | 
| 92 | 92 | 
| 93   // Since V2 applications can be undetectable after launching, this timer is | 93   // Since V2 applications can be undetectable after launching, this timer is | 
| 94   // keeping track of the last launch attempt. | 94   // keeping track of the last launch attempt. | 
| 95   base::Time last_launch_attempt_; | 95   base::Time last_launch_attempt_; | 
| 96 | 96 | 
| 97   ChromeLauncherController* chrome_launcher_controller_; | 97   ChromeLauncherController* chrome_launcher_controller_; | 
| 98 | 98 | 
| 99   DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); | 99   DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); | 
| 100 }; | 100 }; | 
| 101 | 101 | 
| 102 #endif  // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
     H_ | 102 #endif  // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_
     H_ | 
| OLD | NEW | 
|---|