| 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" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "chrome/browser/ui/ash/launcher/launcher_favicon_loader.h" | 16 #include "chrome/browser/ui/ash/launcher/launcher_favicon_loader.h" |
| 17 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" | 17 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" |
| 18 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| 19 #include "ui/aura/window_observer.h" | 19 #include "ui/aura/window_observer.h" |
| 20 | 20 |
| 21 class Browser; | 21 class Browser; |
| 22 class LauncherFaviconLoader; | 22 class LauncherFaviconLoader; |
| 23 class TabContents; | |
| 24 | 23 |
| 25 namespace ash { | 24 namespace ash { |
| 26 class LauncherModel; | 25 class LauncherModel; |
| 27 } | 26 } |
| 28 | 27 |
| 29 // BrowserLauncherItemController is responsible for keeping the launcher | 28 // BrowserLauncherItemController is responsible for keeping the launcher |
| 30 // representation of a window up to date as the active tab changes. | 29 // representation of a window up to date as the active tab changes. |
| 31 class BrowserLauncherItemController : public LauncherItemController, | 30 class BrowserLauncherItemController : public LauncherItemController, |
| 32 public TabStripModelObserver, | 31 public TabStripModelObserver, |
| 33 public LauncherFaviconLoader::Delegate, | 32 public LauncherFaviconLoader::Delegate, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // Whether this is associated with an incognito profile. | 137 // Whether this is associated with an incognito profile. |
| 139 const bool is_incognito_; | 138 const bool is_incognito_; |
| 140 | 139 |
| 141 // Loads launcher sized favicons for panels. | 140 // Loads launcher sized favicons for panels. |
| 142 scoped_ptr<LauncherFaviconLoader> favicon_loader_; | 141 scoped_ptr<LauncherFaviconLoader> favicon_loader_; |
| 143 | 142 |
| 144 DISALLOW_COPY_AND_ASSIGN(BrowserLauncherItemController); | 143 DISALLOW_COPY_AND_ASSIGN(BrowserLauncherItemController); |
| 145 }; | 144 }; |
| 146 | 145 |
| 147 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ | 146 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ |
| OLD | NEW |