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

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

Issue 2055553004: arc: Support pinned apps across Arc-enabled and Arc-disabled platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome_mash_shelf_controller.cc update due namespace renaming Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_CHROME_LAUNCHER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 const gfx::ImageSkia& image) = 0; 147 const gfx::ImageSkia& image) = 0;
148 148
149 // Find out if the given application |id| is a windowed app item and not a 149 // Find out if the given application |id| is a windowed app item and not a
150 // pinned item in the shelf. 150 // pinned item in the shelf.
151 virtual bool IsWindowedAppInLauncher(const std::string& app_id) = 0; 151 virtual bool IsWindowedAppInLauncher(const std::string& app_id) = 0;
152 152
153 // Updates the launch type of the app for the specified id to |launch_type|. 153 // Updates the launch type of the app for the specified id to |launch_type|.
154 virtual void SetLaunchType(ash::ShelfID id, 154 virtual void SetLaunchType(ash::ShelfID id,
155 extensions::LaunchType launch_type) = 0; 155 extensions::LaunchType launch_type) = 0;
156 156
157 // Updates the pinned pref state. The pinned state consists of a list pref.
158 // Each item of the list is a dictionary. The key |kAppIDPath| gives the
159 // id of the app.
160 virtual void PersistPinnedState() = 0;
161
162 // Accessor to the currently loaded profile. Note that in multi profile use 157 // Accessor to the currently loaded profile. Note that in multi profile use
163 // cases this might change over time. 158 // cases this might change over time.
164 virtual Profile* GetProfile() = 0; 159 virtual Profile* GetProfile() = 0;
165 160
166 // Notify the controller that the state of an non platform app's tabs 161 // Notify the controller that the state of an non platform app's tabs
167 // have changed, 162 // have changed,
168 virtual void UpdateAppState(content::WebContents* contents, 163 virtual void UpdateAppState(content::WebContents* contents,
169 AppState app_state) = 0; 164 AppState app_state) = 0;
170 165
171 // Returns ShelfID for |contents|. If |contents| is not an app or is not 166 // Returns ShelfID for |contents|. If |contents| is not an app or is not
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 protected: 260 protected:
266 ChromeLauncherController(); 261 ChromeLauncherController();
267 262
268 private: 263 private:
269 static ChromeLauncherController* instance_; 264 static ChromeLauncherController* instance_;
270 265
271 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 266 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
272 }; 267 };
273 268
274 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 269 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698