[cleanup] Remove LauncherItemChanged() from LauncherItemController

No one have interests LauncherItemChanged().

R=skuhne@chromium.org
BUG=NONE
TEST=Compiles

Review URL: https://chromiumcodereview.appspot.com/23530020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221510 0039d316-1c4b-4281-b951-d872f2087c98
parent 76042fb7
...@@ -145,11 +145,6 @@ void AppShortcutLauncherItemController::OnRemoved() { ...@@ -145,11 +145,6 @@ void AppShortcutLauncherItemController::OnRemoved() {
delete this; delete this;
} }
void AppShortcutLauncherItemController::LauncherItemChanged(
int model_index,
const ash::LauncherItem& old_item) {
}
ChromeLauncherAppMenuItems ChromeLauncherAppMenuItems
AppShortcutLauncherItemController::GetApplicationList(int event_flags) { AppShortcutLauncherItemController::GetApplicationList(int event_flags) {
ChromeLauncherAppMenuItems items; ChromeLauncherAppMenuItems items;
......
...@@ -43,9 +43,6 @@ class AppShortcutLauncherItemController : public LauncherItemController { ...@@ -43,9 +43,6 @@ class AppShortcutLauncherItemController : public LauncherItemController {
virtual void Close() OVERRIDE; virtual void Close() OVERRIDE;
virtual void Clicked(const ui::Event& event) OVERRIDE; virtual void Clicked(const ui::Event& event) OVERRIDE;
virtual void OnRemoved() OVERRIDE; virtual void OnRemoved() OVERRIDE;
virtual void LauncherItemChanged(
int model_index,
const ash::LauncherItem& old_item) OVERRIDE;
virtual ChromeLauncherAppMenuItems GetApplicationList( virtual ChromeLauncherAppMenuItems GetApplicationList(
int event_flags) OVERRIDE; int event_flags) OVERRIDE;
std::vector<content::WebContents*> GetRunningApplications(); std::vector<content::WebContents*> GetRunningApplications();
......
...@@ -108,11 +108,6 @@ void BrowserShortcutLauncherItemController::Activate() { ...@@ -108,11 +108,6 @@ void BrowserShortcutLauncherItemController::Activate() {
void BrowserShortcutLauncherItemController::Close() { void BrowserShortcutLauncherItemController::Close() {
} }
void BrowserShortcutLauncherItemController::LauncherItemChanged(
int model_index,
const ash::LauncherItem& old_item) {
}
void BrowserShortcutLauncherItemController::Clicked(const ui::Event& event) { void BrowserShortcutLauncherItemController::Clicked(const ui::Event& event) {
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
chromeos::default_pinned_apps_field_trial::RecordShelfClick( chromeos::default_pinned_apps_field_trial::RecordShelfClick(
......
...@@ -35,9 +35,6 @@ class BrowserShortcutLauncherItemController : public LauncherItemController { ...@@ -35,9 +35,6 @@ class BrowserShortcutLauncherItemController : public LauncherItemController {
virtual void Launch(int event_flags) OVERRIDE; virtual void Launch(int event_flags) OVERRIDE;
virtual void Activate() OVERRIDE; virtual void Activate() OVERRIDE;
virtual void Close() OVERRIDE; virtual void Close() OVERRIDE;
virtual void LauncherItemChanged(
int model_index,
const ash::LauncherItem& old_item) OVERRIDE;
virtual void Clicked(const ui::Event& event) OVERRIDE; virtual void Clicked(const ui::Event& event) OVERRIDE;
virtual void OnRemoved() OVERRIDE; virtual void OnRemoved() OVERRIDE;
virtual ChromeLauncherAppMenuItems GetApplicationList( virtual ChromeLauncherAppMenuItems GetApplicationList(
......
...@@ -996,9 +996,6 @@ void ChromeLauncherController::LauncherItemMoved(int start_index, ...@@ -996,9 +996,6 @@ void ChromeLauncherController::LauncherItemMoved(int start_index,
void ChromeLauncherController::LauncherItemChanged( void ChromeLauncherController::LauncherItemChanged(
int index, int index,
const ash::LauncherItem& old_item) { const ash::LauncherItem& old_item) {
ash::LauncherID id = model_->items()[index].id;
DCHECK(HasItemController(id));
id_to_item_controller_map_[id]->LauncherItemChanged(index, old_item);
} }
void ChromeLauncherController::LauncherStatusChanged() { void ChromeLauncherController::LauncherStatusChanged() {
......
...@@ -85,10 +85,6 @@ class LauncherItemController { ...@@ -85,10 +85,6 @@ class LauncherItemController {
// Closes all windows associated with this item. // Closes all windows associated with this item.
virtual void Close() = 0; virtual void Close() = 0;
// Indicates that the item at |index| has changed from its previous value.
virtual void LauncherItemChanged(int model_index,
const ash::LauncherItem& old_item) = 0;
// Called when the item is clicked. The behavior varies by the number of // Called when the item is clicked. The behavior varies by the number of
// windows associated with the item: // windows associated with the item:
// * One window: toggles the minimize state. // * One window: toggles the minimize state.
......
...@@ -64,9 +64,6 @@ class ShellWindowLauncherItemController : public LauncherItemController, ...@@ -64,9 +64,6 @@ class ShellWindowLauncherItemController : public LauncherItemController,
virtual void Close() OVERRIDE; virtual void Close() OVERRIDE;
virtual void Clicked(const ui::Event& event) OVERRIDE; virtual void Clicked(const ui::Event& event) OVERRIDE;
virtual void OnRemoved() OVERRIDE {} virtual void OnRemoved() OVERRIDE {}
virtual void LauncherItemChanged(
int model_index,
const ash::LauncherItem& old_item) OVERRIDE {}
virtual ChromeLauncherAppMenuItems GetApplicationList( virtual ChromeLauncherAppMenuItems GetApplicationList(
int event_flags) OVERRIDE; int event_flags) OVERRIDE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment