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

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

Issue 23068021: Remove PerBrowser launcher, reland step 1 of 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROLLER _H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROLLER _H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROLLER _H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROLLER _H_
7 7
8 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" 8 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h"
9 9
10 namespace content { 10 namespace content {
11 class WebContents; 11 class WebContents;
12 } 12 }
13 13
14 namespace gfx { 14 namespace gfx {
15 class Image; 15 class Image;
16 } 16 }
17 17
18 class Browser; 18 class Browser;
19 class ChromeLauncherControllerPerApp; 19 class ChromeLauncherController;
20 class Profile; 20 class Profile;
21 21
22 // Item controller for an browser shortcut. 22 // Item controller for an browser shortcut.
23 class BrowserShortcutLauncherItemController : public LauncherItemController { 23 class BrowserShortcutLauncherItemController : public LauncherItemController {
24 public: 24 public:
25 BrowserShortcutLauncherItemController( 25 BrowserShortcutLauncherItemController(ChromeLauncherController* controller,
26 ChromeLauncherControllerPerApp* controller, 26 Profile* profile);
27 Profile* profile);
28 27
29 virtual ~BrowserShortcutLauncherItemController(); 28 virtual ~BrowserShortcutLauncherItemController();
30 29
31 // LauncherItemController overrides: 30 // LauncherItemController overrides:
32 virtual string16 GetTitle() OVERRIDE; 31 virtual string16 GetTitle() OVERRIDE;
33 virtual bool IsCurrentlyShownInWindow(aura::Window* window) const OVERRIDE; 32 virtual bool IsCurrentlyShownInWindow(aura::Window* window) const OVERRIDE;
34 virtual bool IsOpen() const OVERRIDE; 33 virtual bool IsOpen() const OVERRIDE;
35 virtual bool IsVisible() const OVERRIDE; 34 virtual bool IsVisible() const OVERRIDE;
36 virtual void Launch(int event_flags) OVERRIDE; 35 virtual void Launch(int event_flags) OVERRIDE;
37 virtual void Activate() OVERRIDE; 36 virtual void Activate() OVERRIDE;
(...skipping 14 matching lines...) Expand all
52 // Get the title for the browser list entry for |web_contents|. 51 // Get the title for the browser list entry for |web_contents|.
53 // If |web_contents| has not loaded, returns "Net Tab". 52 // If |web_contents| has not loaded, returns "Net Tab".
54 string16 GetBrowserListTitle(content::WebContents* web_contents) const; 53 string16 GetBrowserListTitle(content::WebContents* web_contents) const;
55 54
56 // Check if the given |web_contents| is in incognito mode. 55 // Check if the given |web_contents| is in incognito mode.
57 bool IsIncognito(content::WebContents* web_contents) const; 56 bool IsIncognito(content::WebContents* web_contents) const;
58 57
59 // Activate a browser - or advance to the next one on the list. 58 // Activate a browser - or advance to the next one on the list.
60 void ActivateOrAdvanceToNextBrowser(); 59 void ActivateOrAdvanceToNextBrowser();
61 60
62 ChromeLauncherControllerPerApp* app_controller_;
63
64 Profile* profile_; 61 Profile* profile_;
65 62
66 DISALLOW_COPY_AND_ASSIGN(BrowserShortcutLauncherItemController); 63 DISALLOW_COPY_AND_ASSIGN(BrowserShortcutLauncherItemController);
67 }; 64 };
68 65
69 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROL LER_H_ 66 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROL LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698