| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_EXTENSION_APP_WINDOW_LAUNCHER_ITEM_CONTRO
LLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_EXTENSION_APP_WINDOW_LAUNCHER_ITEM_CONTRO
LLER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_EXTENSION_APP_WINDOW_LAUNCHER_ITEM_CONTRO
LLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_EXTENSION_APP_WINDOW_LAUNCHER_ITEM_CONTRO
LLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h" | 11 #include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h" |
| 12 | 12 |
| 13 class ChromeLauncherController; |
| 14 |
| 13 namespace extensions { | 15 namespace extensions { |
| 14 class AppWindow; | 16 class AppWindow; |
| 15 } | 17 } |
| 16 | 18 |
| 17 // Shelf item delegate for extension app windows. | 19 // Shelf item delegate for extension app windows. |
| 18 class ExtensionAppWindowLauncherItemController | 20 class ExtensionAppWindowLauncherItemController |
| 19 : public AppWindowLauncherItemController { | 21 : public AppWindowLauncherItemController { |
| 20 public: | 22 public: |
| 21 explicit ExtensionAppWindowLauncherItemController( | 23 ExtensionAppWindowLauncherItemController(const ash::ShelfID& shelf_id, |
| 22 const ash::ShelfID& shelf_id); | 24 ChromeLauncherController* owner); |
| 23 | 25 |
| 24 ~ExtensionAppWindowLauncherItemController() override; | 26 ~ExtensionAppWindowLauncherItemController() override; |
| 25 | 27 |
| 26 void AddAppWindow(extensions::AppWindow* app_window); | 28 void AddAppWindow(extensions::AppWindow* app_window); |
| 27 | 29 |
| 28 // AppWindowLauncherItemController: | 30 // AppWindowLauncherItemController: |
| 29 ash::MenuItemList GetAppMenuItems(int event_flags) override; | 31 ash::MenuItemList GetAppMenuItems(int event_flags) override; |
| 30 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override; | 32 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override; |
| 31 | 33 |
| 32 private: | 34 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(ExtensionAppWindowLauncherItemController); | 35 DISALLOW_COPY_AND_ASSIGN(ExtensionAppWindowLauncherItemController); |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_EXTENSION_APP_WINDOW_LAUNCHER_ITEM_CON
TROLLER_H_ | 38 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_EXTENSION_APP_WINDOW_LAUNCHER_ITEM_CON
TROLLER_H_ |
| OLD | NEW |