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

Side by Side Diff: chrome/browser/ui/ash/chrome_launcher_prefs.h

Issue 2055553004: arc: Support pinned apps across Arc-enabled and Arc-disabled platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup and update Created 4 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_ASH_CHROME_LAUNCHER_PREFS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
6 #define CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_ 6 #define CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/common/shelf/shelf_types.h" 11 #include "ash/common/shelf/shelf_types.h"
12 12
13 class LauncherControllerHelper; 13 class LauncherControllerHelper;
14 class PrefService; 14 class PrefService;
15 class Profile;
15 16
16 namespace base { 17 namespace base {
17 class DictionaryValue; 18 class DictionaryValue;
18 } 19 }
19 20
20 namespace user_prefs { 21 namespace user_prefs {
21 class PrefRegistrySyncable; 22 class PrefRegistrySyncable;
22 } 23 }
23 24
24 namespace ash { 25 namespace ash {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 57
57 // Get or set the shelf alignment preference for a particular display. 58 // Get or set the shelf alignment preference for a particular display.
58 ShelfAlignment GetShelfAlignmentPref(PrefService* prefs, int64_t display_id); 59 ShelfAlignment GetShelfAlignmentPref(PrefService* prefs, int64_t display_id);
59 void SetShelfAlignmentPref(PrefService* prefs, 60 void SetShelfAlignmentPref(PrefService* prefs,
60 int64_t display_id, 61 int64_t display_id,
61 ShelfAlignment alignment); 62 ShelfAlignment alignment);
62 63
63 // Get the list of pinned apps from preferences. 64 // Get the list of pinned apps from preferences.
64 std::vector<std::string> GetPinnedAppsFromPrefs( 65 std::vector<std::string> GetPinnedAppsFromPrefs(
65 const PrefService* prefs, 66 const PrefService* prefs,
66 const LauncherControllerHelper* helper); 67 LauncherControllerHelper* helper);
68
69 // Removes information about pin position from sync model for the app.
70 void RemovePinPosition(Profile* profile, const std::string& app_id);
71
72 // Updates information about pin position in sync model for the app |app_id|.
73 // |app_id_before| optionally specifies an app that exists right before the
74 // target app. |app_id_after| optionally specifies an app that exists right
75 // after the target app.
76 void SetPinPosition(Profile* profile,
77 const std::string& app_id,
78 const std::string& app_id_before,
79 const std::string& app_id_after);
stevenjb 2016/06/10 18:00:41 These functions should really all be in a separate
khmel 2016/06/10 22:08:11 Done.
67 80
68 } // namespace ash 81 } // namespace ash
69 82
70 #endif // CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_ 83 #endif // CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698