OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // Sets a specific launch index for an extension with |extension_id|. | 253 // Sets a specific launch index for an extension with |extension_id|. |
254 void SetAppLaunchIndex(const std::string& extension_id, int index); | 254 void SetAppLaunchIndex(const std::string& extension_id, int index); |
255 | 255 |
256 // Gets the next available application launch index. This is 1 higher than the | 256 // Gets the next available application launch index. This is 1 higher than the |
257 // highest current application launch index found. | 257 // highest current application launch index found. |
258 int GetNextAppLaunchIndex(); | 258 int GetNextAppLaunchIndex(); |
259 | 259 |
260 // Sets the order the apps should be displayed in the app launcher. | 260 // Sets the order the apps should be displayed in the app launcher. |
261 void SetAppLauncherOrder(const std::vector<std::string>& extension_ids); | 261 void SetAppLauncherOrder(const std::vector<std::string>& extension_ids); |
262 | 262 |
| 263 // Returns true if the user repositioned the app on the app launcher via drag |
| 264 // and drop. |
| 265 bool WasAppDraggedByUser(const std::string& extension_id); |
| 266 |
| 267 // Sets a flag indicating that the user repositioned the app on the app |
| 268 // launcher by drag and dropping it. |
| 269 void SetAppDraggedByUser(const std::string& extension_id); |
| 270 |
263 // The extension's update URL data. If not empty, the ExtensionUpdater | 271 // The extension's update URL data. If not empty, the ExtensionUpdater |
264 // will append a ap= parameter to the URL when checking if a new version | 272 // will append a ap= parameter to the URL when checking if a new version |
265 // of the extension is available. | 273 // of the extension is available. |
266 void SetUpdateUrlData(const std::string& extension_id, | 274 void SetUpdateUrlData(const std::string& extension_id, |
267 const std::string& data); | 275 const std::string& data); |
268 std::string GetUpdateUrlData(const std::string& extension_id); | 276 std::string GetUpdateUrlData(const std::string& extension_id); |
269 | 277 |
270 // Sets a preference value that is controlled by the extension. In other | 278 // Sets a preference value that is controlled by the extension. In other |
271 // words, this is not a pref value *about* the extension but something | 279 // words, this is not a pref value *about* the extension but something |
272 // global the extension wants to override. | 280 // global the extension wants to override. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 // Weak pointer, owned by Profile. | 400 // Weak pointer, owned by Profile. |
393 ExtensionPrefValueMap* extension_pref_value_map_; | 401 ExtensionPrefValueMap* extension_pref_value_map_; |
394 | 402 |
395 // The URLs of all of the toolstrips. | 403 // The URLs of all of the toolstrips. |
396 URLList shelf_order_; | 404 URLList shelf_order_; |
397 | 405 |
398 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 406 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
399 }; | 407 }; |
400 | 408 |
401 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 409 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |