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

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

Issue 12288012: Showing launcher items for windowed v1 apps - pinned or not. Also - don't show windowed v1 apps in … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing build breakage with clang Created 7 years, 10 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) 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_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/launcher/launcher_types.h" 10 #include "ash/launcher/launcher_types.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 BrowserLauncherItemController* controller_; 46 BrowserLauncherItemController* controller_;
47 }; 47 };
48 48
49 BrowserLauncherItemController(Type type, 49 BrowserLauncherItemController(Type type,
50 aura::Window* window, 50 aura::Window* window,
51 TabStripModel* tab_model, 51 TabStripModel* tab_model,
52 ChromeLauncherController* launcher_controller, 52 ChromeLauncherController* launcher_controller,
53 const std::string& app_id); 53 const std::string& app_id);
54 virtual ~BrowserLauncherItemController(); 54 virtual ~BrowserLauncherItemController();
55 55
56 // Overriding the app id for V1 apps.
57 virtual const std::string& app_id() const OVERRIDE;
58
56 // Sets up this BrowserLauncherItemController. 59 // Sets up this BrowserLauncherItemController.
57 void Init(); 60 void Init();
58 61
59 // Creates and returns a new BrowserLauncherItemController for |browser|. This 62 // Creates and returns a new BrowserLauncherItemController for |browser|. This
60 // returns NULL if a BrowserLauncherItemController is not needed for the 63 // returns NULL if a BrowserLauncherItemController is not needed for the
61 // specified browser. 64 // specified browser.
62 static BrowserLauncherItemController* Create(Browser* browser); 65 static BrowserLauncherItemController* Create(Browser* browser);
63 66
64 LauncherFaviconLoader* favicon_loader() const { 67 LauncherFaviconLoader* favicon_loader() const {
65 return favicon_loader_.get(); 68 return favicon_loader_.get();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Updates the launcher from |tab|. 129 // Updates the launcher from |tab|.
127 void UpdateLauncher(content::WebContents* tab); 130 void UpdateLauncher(content::WebContents* tab);
128 131
129 void UpdateAppState(content::WebContents* tab); 132 void UpdateAppState(content::WebContents* tab);
130 133
131 ash::LauncherModel* launcher_model(); 134 ash::LauncherModel* launcher_model();
132 135
133 // Browser window we're in. 136 // Browser window we're in.
134 aura::Window* window_; 137 aura::Window* window_;
135 138
139 // If running a windowed V1 app with the new launcher, this (empty) app id
140 // will be returned by app_id().
141 std::string empty_app_id_;
142
136 TabStripModel* tab_model_; 143 TabStripModel* tab_model_;
137 144
138 // Whether this is associated with an incognito profile. 145 // Whether this is associated with an incognito profile.
139 const bool is_incognito_; 146 const bool is_incognito_;
140 147
141 // Loads launcher sized favicons for panels. 148 // Loads launcher sized favicons for panels.
142 scoped_ptr<LauncherFaviconLoader> favicon_loader_; 149 scoped_ptr<LauncherFaviconLoader> favicon_loader_;
143 150
144 DISALLOW_COPY_AND_ASSIGN(BrowserLauncherItemController); 151 DISALLOW_COPY_AND_ASSIGN(BrowserLauncherItemController);
145 }; 152 };
146 153
147 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ 154 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698