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

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

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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 {
(...skipping 23 matching lines...) Expand all
34 virtual bool IsOpen() const OVERRIDE; 34 virtual bool IsOpen() const OVERRIDE;
35 virtual bool IsVisible() const OVERRIDE; 35 virtual bool IsVisible() const OVERRIDE;
36 virtual void Launch(ash::LaunchSource source, int event_flags) OVERRIDE; 36 virtual void Launch(ash::LaunchSource source, int event_flags) OVERRIDE;
37 virtual void Activate(ash::LaunchSource source) OVERRIDE; 37 virtual void Activate(ash::LaunchSource source) OVERRIDE;
38 virtual void Close() OVERRIDE; 38 virtual void Close() OVERRIDE;
39 virtual ChromeLauncherAppMenuItems GetApplicationList( 39 virtual ChromeLauncherAppMenuItems GetApplicationList(
40 int event_flags) OVERRIDE; 40 int event_flags) OVERRIDE;
41 virtual void ItemSelected(const ui::Event& event) OVERRIDE; 41 virtual void ItemSelected(const ui::Event& event) OVERRIDE;
42 virtual base::string16 GetTitle() OVERRIDE; 42 virtual base::string16 GetTitle() OVERRIDE;
43 virtual ui::MenuModel* CreateContextMenu( 43 virtual ui::MenuModel* CreateContextMenu(
44 aura::RootWindow* root_window) OVERRIDE; 44 aura::Window* root_window) OVERRIDE;
45 virtual ash::LauncherMenuModel* CreateApplicationMenu( 45 virtual ash::LauncherMenuModel* CreateApplicationMenu(
46 int event_flags) OVERRIDE; 46 int event_flags) OVERRIDE;
47 virtual bool IsDraggable() OVERRIDE; 47 virtual bool IsDraggable() OVERRIDE;
48 virtual bool ShouldShowTooltip() OVERRIDE; 48 virtual bool ShouldShowTooltip() OVERRIDE;
49 49
50 private: 50 private:
51 // Get the favicon for the browser list entry for |web_contents|. 51 // Get the favicon for the browser list entry for |web_contents|.
52 // Note that for incognito windows the incognito icon will be returned. 52 // Note that for incognito windows the incognito icon will be returned.
53 gfx::Image GetBrowserListIcon(content::WebContents* web_contents) const; 53 gfx::Image GetBrowserListIcon(content::WebContents* web_contents) const;
54 54
55 // Get the title for the browser list entry for |web_contents|. 55 // Get the title for the browser list entry for |web_contents|.
56 // If |web_contents| has not loaded, returns "Net Tab". 56 // If |web_contents| has not loaded, returns "Net Tab".
57 string16 GetBrowserListTitle(content::WebContents* web_contents) const; 57 string16 GetBrowserListTitle(content::WebContents* web_contents) const;
58 58
59 // Check if the given |web_contents| is in incognito mode. 59 // Check if the given |web_contents| is in incognito mode.
60 bool IsIncognito(content::WebContents* web_contents) const; 60 bool IsIncognito(content::WebContents* web_contents) const;
61 61
62 // Activate a browser - or advance to the next one on the list. 62 // Activate a browser - or advance to the next one on the list.
63 void ActivateOrAdvanceToNextBrowser(); 63 void ActivateOrAdvanceToNextBrowser();
64 64
65 // Returns true when the given |browser| is listed in the browser application 65 // Returns true when the given |browser| is listed in the browser application
66 // list. 66 // list.
67 bool IsBrowserRepresentedInBrowserList(Browser* browser); 67 bool IsBrowserRepresentedInBrowserList(Browser* browser);
68 68
69 DISALLOW_COPY_AND_ASSIGN(BrowserShortcutLauncherItemController); 69 DISALLOW_COPY_AND_ASSIGN(BrowserShortcutLauncherItemController);
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROL LER_H_ 72 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_SHORTCUT_LAUNCHER_ITEM_CONTROL LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698