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

Side by Side Diff: chrome/browser/ui/ash/launcher/app_shortcut_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_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 25 matching lines...) Expand all
36 // LauncherItemController overrides: 36 // LauncherItemController overrides:
37 virtual string16 GetTitle() OVERRIDE; 37 virtual string16 GetTitle() OVERRIDE;
38 virtual bool IsCurrentlyShownInWindow(aura::Window* window) const OVERRIDE; 38 virtual bool IsCurrentlyShownInWindow(aura::Window* window) const OVERRIDE;
39 virtual bool IsOpen() const OVERRIDE; 39 virtual bool IsOpen() const OVERRIDE;
40 virtual bool IsVisible() const OVERRIDE; 40 virtual bool IsVisible() const OVERRIDE;
41 virtual void Launch(int event_flags) OVERRIDE; 41 virtual void Launch(int event_flags) OVERRIDE;
42 virtual void Activate() OVERRIDE; 42 virtual void Activate() OVERRIDE;
43 virtual void Close() OVERRIDE; 43 virtual void Close() OVERRIDE;
44 virtual void Clicked(const ui::Event& event) OVERRIDE; 44 virtual void Clicked(const ui::Event& event) OVERRIDE;
45 virtual void OnRemoved() OVERRIDE; 45 virtual void OnRemoved() OVERRIDE;
46 virtual void LauncherItemChanged(
47 int model_index,
48 const ash::LauncherItem& old_item) OVERRIDE;
49 virtual ChromeLauncherAppMenuItems GetApplicationList( 46 virtual ChromeLauncherAppMenuItems GetApplicationList(
50 int event_flags) OVERRIDE; 47 int event_flags) OVERRIDE;
51 std::vector<content::WebContents*> GetRunningApplications(); 48 std::vector<content::WebContents*> GetRunningApplications();
52 49
53 // Get the refocus url pattern, which can be used to identify this application 50 // Get the refocus url pattern, which can be used to identify this application
54 // from a URL link. 51 // from a URL link.
55 const GURL& refocus_url() const { return refocus_url_; } 52 const GURL& refocus_url() const { return refocus_url_; }
56 // Set the refocus url pattern. Used by unit tests. 53 // Set the refocus url pattern. Used by unit tests.
57 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; } 54 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; }
58 55
(...skipping 26 matching lines...) Expand all
85 // Since V2 applications can be undetectable after launching, this timer is 82 // Since V2 applications can be undetectable after launching, this timer is
86 // keeping track of the last launch attempt. 83 // keeping track of the last launch attempt.
87 base::Time last_launch_attempt_; 84 base::Time last_launch_attempt_;
88 85
89 ChromeLauncherController* chrome_launcher_controller_; 86 ChromeLauncherController* chrome_launcher_controller_;
90 87
91 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); 88 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController);
92 }; 89 };
93 90
94 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_ H_ 91 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698