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

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

Issue 6543017: Track which apps the user has re-ordered on the NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix presubmit check Created 9 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) 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
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
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_
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