| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 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_ | |
| 7 | |
| 8 #include "ash/public/cpp/shelf_application_menu_item.h" | |
| 9 #include "base/macros.h" | |
| 10 #include "base/strings/string16.h" | |
| 11 #include "content/public/browser/web_contents_observer.h" | |
| 12 | |
| 13 namespace content{ | |
| 14 class WebContents; | |
| 15 } | |
| 16 | |
| 17 // A shelf application menu item for a running browser tab. | |
| 18 class ChromeLauncherAppMenuItemTab : public ash::ShelfApplicationMenuItem, | |
| 19 public content::WebContentsObserver { | |
| 20 public: | |
| 21 ChromeLauncherAppMenuItemTab(const base::string16 title, | |
| 22 const gfx::Image* icon, | |
| 23 content::WebContents* content); | |
| 24 | |
| 25 // ash::ShelfApplicationMenuItem: | |
| 26 void Execute(int event_flags) override; | |
| 27 | |
| 28 private: | |
| 29 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherAppMenuItemTab); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_TAB_H_ | |
| OLD | NEW |