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

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

Issue 97173003: ash: Rename more Launcher classes to Shelf*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity 30 Created 7 years 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 | Annotate | Revision Log
OLDNEW
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_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 namespace gfx { 24 namespace gfx {
25 class Image; 25 class Image;
26 } 26 }
27 27
28 class ChromeLauncherController; 28 class ChromeLauncherController;
29 29
30 // This is a ShellWindowItemLauncherController for shell windows. There is one 30 // This is a ShellWindowItemLauncherController for shell windows. There is one
31 // instance per app, per launcher id. 31 // instance per app, per launcher id.
32 // For apps with multiple windows, each item controller keeps track of all 32 // For apps with multiple windows, each item controller keeps track of all
33 // windows associated with the app and their activation order. 33 // windows associated with the app and their activation order.
34 // Instances are owned by ash::LauncherItemDelegateManager. 34 // Instances are owned by ash::ShelfItemDelegateManager.
35 // 35 //
36 // Tests are in chrome_launcher_controller_browsertest.cc 36 // Tests are in chrome_launcher_controller_browsertest.cc
37 37
38 class ShellWindowLauncherItemController : public LauncherItemController, 38 class ShellWindowLauncherItemController : public LauncherItemController,
39 public aura::WindowObserver { 39 public aura::WindowObserver {
40 public: 40 public:
41 ShellWindowLauncherItemController(Type type, 41 ShellWindowLauncherItemController(Type type,
42 const std::string& app_launcher_id, 42 const std::string& app_launcher_id,
43 const std::string& app_id, 43 const std::string& app_id,
44 ChromeLauncherController* controller); 44 ChromeLauncherController* controller);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // AppLauncherItemController for each |app_launcher_id_|. 101 // AppLauncherItemController for each |app_launcher_id_|.
102 const std::string app_launcher_id_; 102 const std::string app_launcher_id_;
103 103
104 // Scoped list of observed windows (for removal on destruction) 104 // Scoped list of observed windows (for removal on destruction)
105 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_; 105 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherItemController); 107 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherItemController);
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_ H_ 110 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698