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

Side by Side Diff: chrome/browser/ui/ash/launcher/launcher_item_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 (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_LAUNCHER_ITEM_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_
7 7
8 #include "ash/shelf/shelf_item_delegate.h" 8 #include "ash/shelf/shelf_item_delegate.h"
9 #include "ash/shelf/shelf_item_types.h" 9 #include "ash/shelf/shelf_item_types.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 enum Type { 34 enum Type {
35 TYPE_APP, 35 TYPE_APP,
36 TYPE_APP_PANEL, 36 TYPE_APP_PANEL,
37 TYPE_SHORTCUT, 37 TYPE_SHORTCUT,
38 TYPE_WINDOWED_APP 38 TYPE_WINDOWED_APP
39 }; 39 };
40 40
41 LauncherItemController(Type type, 41 LauncherItemController(Type type,
42 const std::string& app_id, 42 const std::string& app_id,
43 ChromeLauncherController* launcher_controller); 43 ChromeLauncherController* launcher_controller);
44 virtual ~LauncherItemController(); 44 ~LauncherItemController() override;
45 45
46 Type type() const { return type_; } 46 Type type() const { return type_; }
47 ash::ShelfID shelf_id() const { return shelf_id_; } 47 ash::ShelfID shelf_id() const { return shelf_id_; }
48 void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; } 48 void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; }
49 virtual const std::string& app_id() const; 49 virtual const std::string& app_id() const;
50 ChromeLauncherController* launcher_controller() const { 50 ChromeLauncherController* launcher_controller() const {
51 return launcher_controller_; 51 return launcher_controller_;
52 } 52 }
53 53
54 // Lock this item to the launcher without being pinned (windowed v1 apps). 54 // Lock this item to the launcher without being pinned (windowed v1 apps).
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // applications. 101 // applications.
102 int locked_; 102 int locked_;
103 103
104 // Set to true if the launcher item image has been set by the controller. 104 // Set to true if the launcher item image has been set by the controller.
105 bool image_set_by_controller_; 105 bool image_set_by_controller_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); 107 DISALLOW_COPY_AND_ASSIGN(LauncherItemController);
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ 110 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698