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

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

Issue 686563002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_APP_WINDOW_LAUNCHER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_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 21 matching lines...) Expand all
32 32
33 // AppWindowLauncherController observes the app window registry and the 33 // AppWindowLauncherController observes the app window registry and the
34 // aura window manager. It handles adding and removing launcher items from 34 // aura window manager. It handles adding and removing launcher items from
35 // ChromeLauncherController. 35 // ChromeLauncherController.
36 class AppWindowLauncherController 36 class AppWindowLauncherController
37 : public extensions::AppWindowRegistry::Observer, 37 : public extensions::AppWindowRegistry::Observer,
38 public aura::WindowObserver, 38 public aura::WindowObserver,
39 public aura::client::ActivationChangeObserver { 39 public aura::client::ActivationChangeObserver {
40 public: 40 public:
41 explicit AppWindowLauncherController(ChromeLauncherController* owner); 41 explicit AppWindowLauncherController(ChromeLauncherController* owner);
42 virtual ~AppWindowLauncherController(); 42 ~AppWindowLauncherController() override;
43 43
44 // Called by ChromeLauncherController when the active user changed and the 44 // Called by ChromeLauncherController when the active user changed and the
45 // items need to be updated. 45 // items need to be updated.
46 virtual void ActiveUserChanged(const std::string& user_email) {} 46 virtual void ActiveUserChanged(const std::string& user_email) {}
47 47
48 // An additional user identified by |Profile|, got added to the existing 48 // An additional user identified by |Profile|, got added to the existing
49 // session. 49 // session.
50 virtual void AdditionalUserAddedToSession(Profile* profile); 50 virtual void AdditionalUserAddedToSession(Profile* profile);
51 51
52 // Overridden from AppWindowRegistry::Observer: 52 // Overridden from AppWindowRegistry::Observer:
53 virtual void OnAppWindowIconChanged( 53 void OnAppWindowIconChanged(extensions::AppWindow* app_window) override;
54 extensions::AppWindow* app_window) override; 54 void OnAppWindowShown(extensions::AppWindow* app_window) override;
55 virtual void OnAppWindowShown(extensions::AppWindow* app_window) override; 55 void OnAppWindowHidden(extensions::AppWindow* app_window) override;
56 virtual void OnAppWindowHidden(extensions::AppWindow* app_window) override;
57 56
58 // Overriden from aura::WindowObserver: 57 // Overriden from aura::WindowObserver:
59 virtual void OnWindowDestroying(aura::Window* window) override; 58 void OnWindowDestroying(aura::Window* window) override;
60 59
61 // Overriden from client::ActivationChangeObserver: 60 // Overriden from client::ActivationChangeObserver:
62 virtual void OnWindowActivated(aura::Window* gained_active, 61 void OnWindowActivated(aura::Window* gained_active,
63 aura::Window* lost_active) override; 62 aura::Window* lost_active) override;
64 63
65 protected: 64 protected:
66 // Registers a app window with the shelf and this object. 65 // Registers a app window with the shelf and this object.
67 void RegisterApp(extensions::AppWindow* app_window); 66 void RegisterApp(extensions::AppWindow* app_window);
68 67
69 // Unregisters a app window with the shelf and this object. 68 // Unregisters a app window with the shelf and this object.
70 void UnregisterApp(aura::Window* window); 69 void UnregisterApp(aura::Window* window);
71 70
72 // Check if a given window is known to the launcher controller. 71 // Check if a given window is known to the launcher controller.
73 bool IsRegisteredApp(aura::Window* window); 72 bool IsRegisteredApp(aura::Window* window);
(...skipping 15 matching lines...) Expand all
89 // Map of app launcher id to controller. 88 // Map of app launcher id to controller.
90 AppControllerMap app_controller_map_; 89 AppControllerMap app_controller_map_;
91 90
92 // Allows us to get from an aura::Window to the app shelf id. 91 // Allows us to get from an aura::Window to the app shelf id.
93 WindowToAppShelfIdMap window_to_app_shelf_id_map_; 92 WindowToAppShelfIdMap window_to_app_shelf_id_map_;
94 93
95 DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherController); 94 DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherController);
96 }; 95 };
97 96
98 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_ 97 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698