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

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 6297013: [NTP] Allow reordering of apps via drag and drop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // index a -1 value is returned. 244 // index a -1 value is returned.
245 int GetAppLaunchIndex(const std::string& extension_id); 245 int GetAppLaunchIndex(const std::string& extension_id);
246 246
247 // Sets a specific launch index for an extension with |extension_id|. 247 // Sets a specific launch index for an extension with |extension_id|.
248 void SetAppLaunchIndex(const std::string& extension_id, int index); 248 void SetAppLaunchIndex(const std::string& extension_id, int index);
249 249
250 // Gets the next available application launch index. This is 1 higher than the 250 // Gets the next available application launch index. This is 1 higher than the
251 // highest current application launch index found. 251 // highest current application launch index found.
252 int GetNextAppLaunchIndex(); 252 int GetNextAppLaunchIndex();
253 253
254 // Sets the order the apps should be displayed in the app launcher.
255 void SetAppLauncherOrder(const std::vector<std::string>& extension_ids);
256
254 // The extension's update URL data. If not empty, the ExtensionUpdater 257 // The extension's update URL data. If not empty, the ExtensionUpdater
255 // will append a ap= parameter to the URL when checking if a new version 258 // will append a ap= parameter to the URL when checking if a new version
256 // of the extension is available. 259 // of the extension is available.
257 void SetUpdateUrlData(const std::string& extension_id, 260 void SetUpdateUrlData(const std::string& extension_id,
258 const std::string& data); 261 const std::string& data);
259 std::string GetUpdateUrlData(const std::string& extension_id); 262 std::string GetUpdateUrlData(const std::string& extension_id);
260 263
261 // Sets a preference value that is controlled by the extension. In other 264 // Sets a preference value that is controlled by the extension. In other
262 // words, this is not a pref value *about* the extension but something 265 // words, this is not a pref value *about* the extension but something
263 // global the extension wants to override. 266 // global the extension wants to override.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // Used to manipulate extension preferences. 399 // Used to manipulate extension preferences.
397 ExtensionPrefStore* pref_store_; 400 ExtensionPrefStore* pref_store_;
398 401
399 // The URLs of all of the toolstrips. 402 // The URLs of all of the toolstrips.
400 URLList shelf_order_; 403 URLList shelf_order_;
401 404
402 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 405 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
403 }; 406 };
404 407
405 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 408 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/app_launcher_handler.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698