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

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

Issue 2622423002: Remove unused LauncherItemController::IsVisible() (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "ash/common/shelf/shelf_item_delegate.h" 10 #include "ash/common/shelf/shelf_item_delegate.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 DCHECK(locked_); 43 DCHECK(locked_);
44 locked_--; 44 locked_--;
45 } 45 }
46 bool locked() const { return locked_ > 0; } 46 bool locked() const { return locked_ > 0; }
47 47
48 bool image_set_by_controller() const { return image_set_by_controller_; } 48 bool image_set_by_controller() const { return image_set_by_controller_; }
49 void set_image_set_by_controller(bool image_set_by_controller) { 49 void set_image_set_by_controller(bool image_set_by_controller) {
50 image_set_by_controller_ = image_set_by_controller; 50 image_set_by_controller_ = image_set_by_controller;
51 } 51 }
52 52
53 // Returns true if this item is visible (e.g. not minimized).
54 virtual bool IsVisible() const = 0;
55
56 // Launches a new instance of the app associated with this item. 53 // Launches a new instance of the app associated with this item.
57 virtual void Launch(ash::LaunchSource source, int event_flags) = 0; 54 virtual void Launch(ash::LaunchSource source, int event_flags) = 0;
58 55
59 // Shows and activates the most-recently-active window associated with the 56 // Shows and activates the most-recently-active window associated with the
60 // item, or launches the item if it is not currently open. 57 // item, or launches the item if it is not currently open.
61 // Returns the action performed by activating the item. 58 // Returns the action performed by activating the item.
62 virtual PerformedAction Activate(ash::LaunchSource source) = 0; 59 virtual PerformedAction Activate(ash::LaunchSource source) = 0;
63 60
64 // Called to retrieve the list of running applications. 61 // Called to retrieve the list of running applications.
65 virtual ChromeLauncherAppMenuItems GetApplicationList(int event_flags) = 0; 62 virtual ChromeLauncherAppMenuItems GetApplicationList(int event_flags) = 0;
(...skipping 17 matching lines...) Expand all
83 // applications. 80 // applications.
84 int locked_; 81 int locked_;
85 82
86 // Set to true if the launcher item image has been set by the controller. 83 // Set to true if the launcher item image has been set by the controller.
87 bool image_set_by_controller_; 84 bool image_set_by_controller_;
88 85
89 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); 86 DISALLOW_COPY_AND_ASSIGN(LauncherItemController);
90 }; 87 };
91 88
92 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ 89 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698