| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROLLER
_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROLLER
_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROLLER
_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROLLER
_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" | 9 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" |
| 10 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // LauncherItemController overrides: | 45 // LauncherItemController overrides: |
| 46 bool IsVisible() const override; | 46 bool IsVisible() const override; |
| 47 void Launch(ash::LaunchSource source, int event_flags) override; | 47 void Launch(ash::LaunchSource source, int event_flags) override; |
| 48 ShelfItemDelegate::PerformedAction Activate( | 48 ShelfItemDelegate::PerformedAction Activate( |
| 49 ash::LaunchSource source) override; | 49 ash::LaunchSource source) override; |
| 50 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override; | 50 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override; |
| 51 ash::ShelfItemDelegate::PerformedAction ItemSelected( | 51 ash::ShelfItemDelegate::PerformedAction ItemSelected( |
| 52 const ui::Event& event) override; | 52 const ui::Event& event) override; |
| 53 base::string16 GetTitle() override; | 53 base::string16 GetTitle() override; |
| 54 ash::ShelfMenuModel* CreateApplicationMenu(int event_flags) override; | 54 ash::ShelfMenuModel* CreateApplicationMenu(int event_flags) override; |
| 55 bool CanPin() const override; | |
| 56 void Close() override; | 55 void Close() override; |
| 57 | 56 |
| 58 private: | 57 private: |
| 59 // Get the favicon for the browser list entry for |web_contents|. | 58 // Get the favicon for the browser list entry for |web_contents|. |
| 60 // Note that for incognito windows the incognito icon will be returned. | 59 // Note that for incognito windows the incognito icon will be returned. |
| 61 gfx::Image GetBrowserListIcon(content::WebContents* web_contents) const; | 60 gfx::Image GetBrowserListIcon(content::WebContents* web_contents) const; |
| 62 | 61 |
| 63 // Get the title for the browser list entry for |web_contents|. | 62 // Get the title for the browser list entry for |web_contents|. |
| 64 // If |web_contents| has not loaded, returns "Net Tab". | 63 // If |web_contents| has not loaded, returns "Net Tab". |
| 65 base::string16 GetBrowserListTitle(content::WebContents* web_contents) const; | 64 base::string16 GetBrowserListTitle(content::WebContents* web_contents) const; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 78 | 77 |
| 79 // Get a list of active browsers. | 78 // Get a list of active browsers. |
| 80 BrowserList::BrowserVector GetListOfActiveBrowsers(); | 79 BrowserList::BrowserVector GetListOfActiveBrowsers(); |
| 81 | 80 |
| 82 ash::ShelfModel* shelf_model_; | 81 ash::ShelfModel* shelf_model_; |
| 83 | 82 |
| 84 DISALLOW_COPY_AND_ASSIGN(BrowserShortcutLauncherItemController); | 83 DISALLOW_COPY_AND_ASSIGN(BrowserShortcutLauncherItemController); |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROL
LER_H_ | 86 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROL
LER_H_ |
| OLD | NEW |