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

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

Issue 487021: Persist the order of extensions in the browser action toolbar across sessions... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 // Populate |killed_ids| with extension ids that have been killed. 29 // Populate |killed_ids| with extension ids that have been killed.
30 void GetKilledExtensionIds(std::set<std::string>* killed_ids); 30 void GetKilledExtensionIds(std::set<std::string>* killed_ids);
31 31
32 // Get the order that toolstrip URLs appear in the shelf. 32 // Get the order that toolstrip URLs appear in the shelf.
33 typedef std::vector<GURL> URLList; 33 typedef std::vector<GURL> URLList;
34 URLList GetShelfToolstripOrder(); 34 URLList GetShelfToolstripOrder();
35 35
36 // Sets the order that toolstrip URLs appear in the shelf. 36 // Sets the order that toolstrip URLs appear in the shelf.
37 void SetShelfToolstripOrder(const URLList& urls); 37 void SetShelfToolstripOrder(const URLList& urls);
38 38
39 // Get the order that the browser actions appear in the toolbar.
40 std::vector<std::string> GetToolbarOrder();
41
42 // Set the order that the browser actions appear in the toolbar.
43 void SetToolbarOrder(const std::vector<std::string>& extension_ids);
44
39 // Called when an extension is installed, so that prefs get created. 45 // Called when an extension is installed, so that prefs get created.
40 void OnExtensionInstalled(Extension* extension); 46 void OnExtensionInstalled(Extension* extension);
41 47
42 // Called when an extension is uninstalled, so that prefs get cleaned up. 48 // Called when an extension is uninstalled, so that prefs get cleaned up.
43 void OnExtensionUninstalled(const Extension* extension, 49 void OnExtensionUninstalled(const Extension* extension,
44 bool external_uninstall); 50 bool external_uninstall);
45 51
46 // Returns the state (enabled/disabled) of the given extension. 52 // Returns the state (enabled/disabled) of the given extension.
47 Extension::State GetExtensionState(const std::string& extension_id); 53 Extension::State GetExtensionState(const std::string& extension_id);
48 54
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 private: 135 private:
130 // A copy of the extensions pref dictionary so that this can be passed 136 // A copy of the extensions pref dictionary so that this can be passed
131 // around without a dependency on prefs. 137 // around without a dependency on prefs.
132 scoped_ptr<DictionaryValue> extension_data_; 138 scoped_ptr<DictionaryValue> extension_data_;
133 139
134 DISALLOW_COPY_AND_ASSIGN(InstalledExtensions); 140 DISALLOW_COPY_AND_ASSIGN(InstalledExtensions);
135 }; 141 };
136 142
137 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 143 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
138 144
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_prefs.cc » ('j') | chrome/browser/extensions/extension_toolbar_model.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698