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

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

Issue 7677032: ntp4: make app-install-via-drag less janky (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more test fixes Created 9 years, 4 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // Get the order that the browser actions appear in the toolbar. 97 // Get the order that the browser actions appear in the toolbar.
98 std::vector<std::string> GetToolbarOrder(); 98 std::vector<std::string> GetToolbarOrder();
99 99
100 // Set the order that the browser actions appear in the toolbar. 100 // Set the order that the browser actions appear in the toolbar.
101 void SetToolbarOrder(const std::vector<std::string>& extension_ids); 101 void SetToolbarOrder(const std::vector<std::string>& extension_ids);
102 102
103 // Called when an extension is installed, so that prefs get created. 103 // Called when an extension is installed, so that prefs get created.
104 void OnExtensionInstalled(const Extension* extension, 104 void OnExtensionInstalled(const Extension* extension,
105 Extension::State initial_state, 105 Extension::State initial_state,
106 bool from_webstore); 106 bool from_webstore,
107 int page_index);
107 108
108 // Called when an extension is uninstalled, so that prefs get cleaned up. 109 // Called when an extension is uninstalled, so that prefs get cleaned up.
109 void OnExtensionUninstalled(const std::string& extension_id, 110 void OnExtensionUninstalled(const std::string& extension_id,
110 const Extension::Location& location, 111 const Extension::Location& location,
111 bool external_uninstall); 112 bool external_uninstall);
112 113
113 // Called to change the extension's state when it is enabled/disabled. 114 // Called to change the extension's state when it is enabled/disabled.
114 void SetExtensionState(const std::string& extension_id, Extension::State); 115 void SetExtensionState(const std::string& extension_id, Extension::State);
115 116
116 // Returns all installed extensions 117 // Returns all installed extensions
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Get the application launch index for an extension with |extension_id|. This 267 // Get the application launch index for an extension with |extension_id|. This
267 // determines the order of which the applications appear on the New Tab Page. 268 // determines the order of which the applications appear on the New Tab Page.
268 // A value of 0 generally indicates top left. If the extension has no launch 269 // A value of 0 generally indicates top left. If the extension has no launch
269 // index a -1 value is returned. 270 // index a -1 value is returned.
270 int GetAppLaunchIndex(const std::string& extension_id); 271 int GetAppLaunchIndex(const std::string& extension_id);
271 272
272 // Sets a specific launch index for an extension with |extension_id|. 273 // Sets a specific launch index for an extension with |extension_id|.
273 void SetAppLaunchIndex(const std::string& extension_id, int index); 274 void SetAppLaunchIndex(const std::string& extension_id, int index);
274 275
275 // Gets the next available application launch index. This is 1 higher than the 276 // Gets the next available application launch index. This is 1 higher than the
276 // highest current application launch index found. 277 // highest current application launch index found for the page |on_page|.
277 int GetNextAppLaunchIndex(); 278 int GetNextAppLaunchIndex(int on_page);
278 279
279 // Sets the order the apps should be displayed in the app launcher. 280 // Sets the order the apps should be displayed in the app launcher.
280 void SetAppLauncherOrder(const std::vector<std::string>& extension_ids); 281 void SetAppLauncherOrder(const std::vector<std::string>& extension_ids);
281 282
282 // Get the application page index for an extension with |extension_id|. This 283 // Get the application page index for an extension with |extension_id|. This
283 // determines which page an app will appear on in page-based NTPs. If 284 // determines which page an app will appear on in page-based NTPs. If
284 // the app has no page specified, -1 is returned. 285 // the app has no page specified, -1 is returned.
285 int GetPageIndex(const std::string& extension_id); 286 int GetPageIndex(const std::string& extension_id);
286 287
287 // Sets a specific page index for an extension with |extension_id|. 288 // Sets a specific page index for an extension with |extension_id|.
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 481
481 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; 482 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_;
482 483
483 // The URLs of all of the toolstrips. 484 // The URLs of all of the toolstrips.
484 URLList shelf_order_; 485 URLList shelf_order_;
485 486
486 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 487 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
487 }; 488 };
488 489
489 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 490 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698