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

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

Issue 11316292: Add app.window.setIcon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ShellWindowUpdate -> ShellWindowIconUpdated Created 8 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_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 class ShellWindowLauncherController 33 class ShellWindowLauncherController
34 : public extensions::ShellWindowRegistry::Observer, 34 : public extensions::ShellWindowRegistry::Observer,
35 public aura::WindowObserver, 35 public aura::WindowObserver,
36 public aura::client::ActivationChangeObserver { 36 public aura::client::ActivationChangeObserver {
37 public: 37 public:
38 explicit ShellWindowLauncherController(ChromeLauncherController* owner); 38 explicit ShellWindowLauncherController(ChromeLauncherController* owner);
39 virtual ~ShellWindowLauncherController(); 39 virtual ~ShellWindowLauncherController();
40 40
41 // Overridden from ShellWindowRegistry::Observer: 41 // Overridden from ShellWindowRegistry::Observer:
42 virtual void OnShellWindowAdded(ShellWindow* shell_window) OVERRIDE; 42 virtual void OnShellWindowAdded(ShellWindow* shell_window) OVERRIDE;
43 virtual void OnShellWindowIconUpdated(ShellWindow* shell_window) OVERRIDE;
Ben Goodger (Google) 2012/12/04 00:03:37 2 cents: we have a stronger tradition of using the
stevenjb 2012/12/04 04:31:02 Makes sense. Done.
43 virtual void OnShellWindowRemoved(ShellWindow* shell_window) OVERRIDE; 44 virtual void OnShellWindowRemoved(ShellWindow* shell_window) OVERRIDE;
44 45
45 // Overriden from aura::WindowObserver: 46 // Overriden from aura::WindowObserver:
46 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 47 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
47 48
48 // Overriden from client::ActivationChangeObserver: 49 // Overriden from client::ActivationChangeObserver:
49 virtual void OnWindowActivated(aura::Window* active, 50 virtual void OnWindowActivated(aura::Window* active,
50 aura::Window* old_active) OVERRIDE; 51 aura::Window* old_active) OVERRIDE;
51 52
52 private: 53 private:
(...skipping 11 matching lines...) Expand all
64 // Map of app launcher id to controller. 65 // Map of app launcher id to controller.
65 AppControllerMap app_controller_map_; 66 AppControllerMap app_controller_map_;
66 67
67 // Allows us to get from an aura::Window to the app launcher id. 68 // Allows us to get from an aura::Window to the app launcher id.
68 WindowToAppLauncherIdMap window_to_app_launcher_id_map_; 69 WindowToAppLauncherIdMap window_to_app_launcher_id_map_;
69 70
70 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherController); 71 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherController);
71 }; 72 };
72 73
73 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_ 74 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/shell_window_registry.cc ('k') | chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698