| 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_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/launcher/launcher_types.h" | 10 #include "ash/launcher/launcher_types.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 virtual bool IsOpen() const OVERRIDE; | 76 virtual bool IsOpen() const OVERRIDE; |
| 77 virtual void Launch(int event_flags) OVERRIDE; | 77 virtual void Launch(int event_flags) OVERRIDE; |
| 78 virtual void Activate() OVERRIDE; | 78 virtual void Activate() OVERRIDE; |
| 79 virtual void Close() OVERRIDE; | 79 virtual void Close() OVERRIDE; |
| 80 virtual void Clicked() OVERRIDE; | 80 virtual void Clicked() OVERRIDE; |
| 81 virtual void OnRemoved() OVERRIDE; | 81 virtual void OnRemoved() OVERRIDE; |
| 82 virtual void LauncherItemChanged(int index, | 82 virtual void LauncherItemChanged(int index, |
| 83 const ash::LauncherItem& old_item) OVERRIDE; | 83 const ash::LauncherItem& old_item) OVERRIDE; |
| 84 | 84 |
| 85 // TabStripModel overrides: | 85 // TabStripModel overrides: |
| 86 virtual void ActiveTabChanged(TabContents* old_contents, | 86 virtual void ActiveTabChanged(content::WebContents* old_contents, |
| 87 TabContents* new_contents, | 87 content::WebContents* new_contents, |
| 88 int index, | 88 int index, |
| 89 bool user_gesture) OVERRIDE; | 89 bool user_gesture) OVERRIDE; |
| 90 virtual void TabInsertedAt(content::WebContents* contents, | 90 virtual void TabInsertedAt(content::WebContents* contents, |
| 91 int index, | 91 int index, |
| 92 bool foreground) OVERRIDE; | 92 bool foreground) OVERRIDE; |
| 93 virtual void TabDetachedAt(content::WebContents* contents, | 93 virtual void TabDetachedAt(content::WebContents* contents, |
| 94 int index) OVERRIDE; | 94 int index) OVERRIDE; |
| 95 virtual void TabChangedAt( | 95 virtual void TabChangedAt( |
| 96 TabContents* tab, | 96 TabContents* tab, |
| 97 int index, | 97 int index, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 117 UPDATE_TAB_REMOVED, | 117 UPDATE_TAB_REMOVED, |
| 118 UPDATE_TAB_CHANGED, | 118 UPDATE_TAB_CHANGED, |
| 119 UPDATE_TAB_INSERTED, | 119 UPDATE_TAB_INSERTED, |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 // Updates the launcher item status base on the activation and attention | 122 // Updates the launcher item status base on the activation and attention |
| 123 // state of the window. | 123 // state of the window. |
| 124 void UpdateItemStatus(); | 124 void UpdateItemStatus(); |
| 125 | 125 |
| 126 // Updates the launcher from |tab|. | 126 // Updates the launcher from |tab|. |
| 127 void UpdateLauncher(TabContents* tab); | 127 void UpdateLauncher(content::WebContents* tab); |
| 128 | 128 |
| 129 void UpdateAppState(content::WebContents* tab); | 129 void UpdateAppState(content::WebContents* tab); |
| 130 | 130 |
| 131 ash::LauncherModel* launcher_model(); | 131 ash::LauncherModel* launcher_model(); |
| 132 | 132 |
| 133 // Browser window we're in. | 133 // Browser window we're in. |
| 134 aura::Window* window_; | 134 aura::Window* window_; |
| 135 | 135 |
| 136 TabStripModel* tab_model_; | 136 TabStripModel* tab_model_; |
| 137 | 137 |
| 138 // Whether this is associated with an incognito profile. | 138 // Whether this is associated with an incognito profile. |
| 139 const bool is_incognito_; | 139 const bool is_incognito_; |
| 140 | 140 |
| 141 // Loads launcher sized favicons for panels. | 141 // Loads launcher sized favicons for panels. |
| 142 scoped_ptr<LauncherFaviconLoader> favicon_loader_; | 142 scoped_ptr<LauncherFaviconLoader> favicon_loader_; |
| 143 | 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(BrowserLauncherItemController); | 144 DISALLOW_COPY_AND_ASSIGN(BrowserLauncherItemController); |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ | 147 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ |
| OLD | NEW |