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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.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 (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_CHROME_LAUNCHER_APP_MENU_ITEM_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_BROWSER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_BROWSER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_BROWSER_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h" 9 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
11 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
12 12
13 class Browser; 13 class Browser;
14 14
15 // A menu item controller for a running browser. It gets created when an 15 // A menu item controller for a running browser. It gets created when an
16 // application list gets created. It's main purpose is to add the activation 16 // application list gets created. It's main purpose is to add the activation
17 // method to the |ChromeLauncherAppMenuItem| class. 17 // method to the |ChromeLauncherAppMenuItem| class.
18 class ChromeLauncherAppMenuItemBrowser : public content::NotificationObserver, 18 class ChromeLauncherAppMenuItemBrowser : public content::NotificationObserver,
19 public ChromeLauncherAppMenuItem { 19 public ChromeLauncherAppMenuItem {
20 public: 20 public:
21 ChromeLauncherAppMenuItemBrowser(const base::string16 title, 21 ChromeLauncherAppMenuItemBrowser(const base::string16 title,
22 const gfx::Image* icon, 22 const gfx::Image* icon,
23 Browser* browser, 23 Browser* browser,
24 bool has_leading_separator); 24 bool has_leading_separator);
25 virtual ~ChromeLauncherAppMenuItemBrowser(); 25 ~ChromeLauncherAppMenuItemBrowser() override;
26 26
27 virtual bool IsActive() const override; 27 bool IsActive() const override;
28 virtual bool IsEnabled() const override; 28 bool IsEnabled() const override;
29 virtual void Execute(int event_flags) override; 29 void Execute(int event_flags) override;
30 30
31 private: 31 private:
32 // content::NotificationObserver. 32 // content::NotificationObserver.
33 virtual void Observe(int type, 33 void Observe(int type,
34 const content::NotificationSource& source, 34 const content::NotificationSource& source,
35 const content::NotificationDetails& details) override; 35 const content::NotificationDetails& details) override;
36 36
37 // The browser which is associated which this item. 37 // The browser which is associated which this item.
38 Browser* browser_; 38 Browser* browser_;
39 39
40 content::NotificationRegistrar registrar_; 40 content::NotificationRegistrar registrar_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherAppMenuItemBrowser); 42 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherAppMenuItemBrowser);
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_BROWSER_ H_ 45 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_BROWSER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698