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

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: Fix unit test 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 ash::LauncherID item_id() const { return controller_->launcher_id(); } 43 ash::LauncherID item_id() const { return controller_->launcher_id(); }
44 44
45 private: 45 private:
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 const std::string& v1_app_id);
54 virtual ~BrowserLauncherItemController(); 55 virtual ~BrowserLauncherItemController();
55 56
56 // Sets up this BrowserLauncherItemController. 57 // Sets up this BrowserLauncherItemController.
57 void Init(); 58 void Init();
58 59
59 // Creates and returns a new BrowserLauncherItemController for |browser|. This 60 // Creates and returns a new BrowserLauncherItemController for |browser|. This
60 // returns NULL if a BrowserLauncherItemController is not needed for the 61 // returns NULL if a BrowserLauncherItemController is not needed for the
61 // specified browser. 62 // specified browser.
62 static BrowserLauncherItemController* Create(Browser* browser); 63 static BrowserLauncherItemController* Create(Browser* browser);
63 64
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Updates the launcher from |tab|. 127 // Updates the launcher from |tab|.
127 void UpdateLauncher(content::WebContents* tab); 128 void UpdateLauncher(content::WebContents* tab);
128 129
129 void UpdateAppState(content::WebContents* tab); 130 void UpdateAppState(content::WebContents* tab);
130 131
131 ash::LauncherModel* launcher_model(); 132 ash::LauncherModel* launcher_model();
132 133
133 // Browser window we're in. 134 // Browser window we're in.
134 aura::Window* window_; 135 aura::Window* window_;
135 136
137 // If running a windowed V1 app with the new launcher, the app id needs to be
138 // remembered since an icon needs to be created/destroyed if not pinned.
139 std::string v1_app_id_;
sky 2013/02/19 17:55:56 Do we really need app_id and v1_app_id? Don't we k
Mr4D (OOO till 08-26) 2013/02/19 19:22:13 Addressed as discussed.
140
136 TabStripModel* tab_model_; 141 TabStripModel* tab_model_;
137 142
138 // Whether this is associated with an incognito profile. 143 // Whether this is associated with an incognito profile.
139 const bool is_incognito_; 144 const bool is_incognito_;
140 145
141 // Loads launcher sized favicons for panels. 146 // Loads launcher sized favicons for panels.
142 scoped_ptr<LauncherFaviconLoader> favicon_loader_; 147 scoped_ptr<LauncherFaviconLoader> favicon_loader_;
143 148
144 DISALLOW_COPY_AND_ASSIGN(BrowserLauncherItemController); 149 DISALLOW_COPY_AND_ASSIGN(BrowserLauncherItemController);
145 }; 150 };
146 151
147 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_ 152 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698