Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Side by Side Diff: chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.h

Issue 2671923002: mash: Cleanup ash shelf application menu code. (Closed)
Patch Set: Add comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 ExtensionAppWindowLauncherItemController( 23 ExtensionAppWindowLauncherItemController(
24 const std::string& app_id, 24 const std::string& app_id,
25 const std::string& launch_id, 25 const std::string& launch_id,
26 ChromeLauncherController* controller); 26 ChromeLauncherController* controller);
27 27
28 ~ExtensionAppWindowLauncherItemController() override; 28 ~ExtensionAppWindowLauncherItemController() override;
29 29
30 void AddAppWindow(extensions::AppWindow* app_window); 30 void AddAppWindow(extensions::AppWindow* app_window);
31 31
32 // LauncherItemController overrides: 32 // LauncherItemController overrides:
33 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override; 33 ash::ShelfAppMenuItemList GetAppMenuItems(int event_flags) override;
34 34
35 protected: 35 protected:
36 // AppWindowLauncherItemController: 36 // AppWindowLauncherItemController:
37 void OnWindowRemoved(ui::BaseWindow* window) override; 37 void OnWindowRemoved(ui::BaseWindow* window) override;
38 38
39 private: 39 private:
40 using WindowToAppWindow = 40 using WindowToAppWindow =
41 std::map<const ui::BaseWindow*, extensions::AppWindow*>; 41 std::map<const ui::BaseWindow*, extensions::AppWindow*>;
42 42
43 WindowToAppWindow window_to_app_window_; 43 WindowToAppWindow window_to_app_window_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(ExtensionAppWindowLauncherItemController); 45 DISALLOW_COPY_AND_ASSIGN(ExtensionAppWindowLauncherItemController);
46 }; 46 };
47 47
48 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_EXTENSION_APP_WINDOW_LAUNCHER_ITEM_CON TROLLER_H_ 48 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_EXTENSION_APP_WINDOW_LAUNCHER_ITEM_CON TROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698