| 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_CHROME_LAUNCHER_APP_MENU_ITEM_TAB_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_TAB_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_TAB_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_TAB_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h" | 9 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| 11 | 11 |
| 12 namespace content{ | 12 namespace content{ |
| 13 class WebContents; | 13 class WebContents; |
| 14 } | 14 } |
| 15 | 15 |
| 16 class TabStripModel; | 16 class TabStripModel; |
| 17 | 17 |
| 18 // A menu item controller for a running browser tab. It gets created when an | 18 // A menu item controller for a running browser tab. It gets created when an |
| 19 // application/tab list gets created. It's main purpose is to add the | 19 // application/tab list gets created. It's main purpose is to add the |
| 20 // activation method to the |ChromeLauncherAppMenuItem| class. | 20 // activation method to the |ChromeLauncherAppMenuItem| class. |
| 21 class ChromeLauncherAppMenuItemTab | 21 class ChromeLauncherAppMenuItemTab |
| 22 : public ChromeLauncherAppMenuItem, | 22 : public ChromeLauncherAppMenuItem, |
| 23 public content::WebContentsObserver { | 23 public content::WebContentsObserver { |
| 24 public: | 24 public: |
| 25 ChromeLauncherAppMenuItemTab(const base::string16 title, | 25 ChromeLauncherAppMenuItemTab(const base::string16 title, |
| 26 const gfx::Image* icon, | 26 const gfx::Image* icon, |
| 27 content::WebContents* content, | 27 content::WebContents* content, |
| 28 bool has_leading_separator); | 28 bool has_leading_separator); |
| 29 virtual bool IsActive() const OVERRIDE; | 29 virtual bool IsActive() const override; |
| 30 virtual bool IsEnabled() const OVERRIDE; | 30 virtual bool IsEnabled() const override; |
| 31 virtual void Execute(int event_flags) OVERRIDE; | 31 virtual void Execute(int event_flags) override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherAppMenuItemTab); | 34 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherAppMenuItemTab); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_TAB_H_ | 37 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_TAB_H_ |
| OLD | NEW |