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

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

Issue 23530020: [cleanup] Remove LauncherItemChanged() from LauncherItemController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
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/launcher/launcher_types.h" 8 #include "ash/launcher/launcher_types.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Launches a new instance of the app associated with this item. 78 // Launches a new instance of the app associated with this item.
79 virtual void Launch(int event_flags) = 0; 79 virtual void Launch(int event_flags) = 0;
80 80
81 // Shows and activates the most-recently-active window associated with the 81 // Shows and activates the most-recently-active window associated with the
82 // item, or launches the item if it is not currently open. 82 // item, or launches the item if it is not currently open.
83 virtual void Activate() = 0; 83 virtual void Activate() = 0;
84 84
85 // Closes all windows associated with this item. 85 // Closes all windows associated with this item.
86 virtual void Close() = 0; 86 virtual void Close() = 0;
87 87
88 // Indicates that the item at |index| has changed from its previous value.
89 virtual void LauncherItemChanged(int model_index,
90 const ash::LauncherItem& old_item) = 0;
91
92 // Called when the item is clicked. The behavior varies by the number of 88 // Called when the item is clicked. The behavior varies by the number of
93 // windows associated with the item: 89 // windows associated with the item:
94 // * One window: toggles the minimize state. 90 // * One window: toggles the minimize state.
95 // * Multiple windows: cycles the active window. 91 // * Multiple windows: cycles the active window.
96 // The |event| is dispatched by a view, therefore the type of the 92 // The |event| is dispatched by a view, therefore the type of the
97 // event's target is |views::View|. 93 // event's target is |views::View|.
98 virtual void Clicked(const ui::Event& event) = 0; 94 virtual void Clicked(const ui::Event& event) = 0;
99 95
100 // Called when the controlled item is removed from the launcher. 96 // Called when the controlled item is removed from the launcher.
101 virtual void OnRemoved() = 0; 97 virtual void OnRemoved() = 0;
(...skipping 21 matching lines...) Expand all
123 // applications. 119 // applications.
124 int locked_; 120 int locked_;
125 121
126 // Set to true if the launcher item image has been set by the controller. 122 // Set to true if the launcher item image has been set by the controller.
127 bool image_set_by_controller_; 123 bool image_set_by_controller_;
128 124
129 DISALLOW_COPY_AND_ASSIGN(LauncherItemController); 125 DISALLOW_COPY_AND_ASSIGN(LauncherItemController);
130 }; 126 };
131 127
132 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_ 128 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698