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

Side by Side Diff: extensions/shell/browser/shell_app_sorting.cc

Issue 549663002: Move AppWindowGeometryCacheTest to extensions_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (app-window) rebase 2 Created 6 years, 3 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "extensions/shell/browser/shell_app_sorting.h"
6
7 #include "sync/api/string_ordinal.h"
8
9 namespace {
10
11 // Ordinals for a single app on a single page.
12 const char kFirstApp[] = "a";
13 const char kNextApp[] = "b";
14 const char kFirstPage[] = "a";
15
16 } // namespace
17
18 namespace extensions {
19
20 ShellAppSorting::ShellAppSorting() {
21 }
22
23 ShellAppSorting::~ShellAppSorting() {
24 }
25
26 void ShellAppSorting::SetExtensionScopedPrefs(ExtensionScopedPrefs* prefs) {
27 }
28
29 void ShellAppSorting::SetExtensionSyncService(
30 ExtensionSyncService* extension_sync_service) {
31 }
32
33 void ShellAppSorting::Initialize(const ExtensionIdList& extension_ids) {
34 }
35
36 void ShellAppSorting::FixNTPOrdinalCollisions() {
37 }
38
39 void ShellAppSorting::EnsureValidOrdinals(
40 const std::string& extension_id,
41 const syncer::StringOrdinal& suggested_page) {
42 }
43
44 void ShellAppSorting::OnExtensionMoved(
45 const std::string& moved_extension_id,
46 const std::string& predecessor_extension_id,
47 const std::string& successor_extension_id) {
48 }
49
50 syncer::StringOrdinal ShellAppSorting::GetAppLaunchOrdinal(
51 const std::string& extension_id) const {
52 return syncer::StringOrdinal(kFirstApp);
53 }
54
55 void ShellAppSorting::SetAppLaunchOrdinal(
56 const std::string& extension_id,
57 const syncer::StringOrdinal& new_app_launch_ordinal) {
58 }
59
60 syncer::StringOrdinal ShellAppSorting::CreateFirstAppLaunchOrdinal(
61 const syncer::StringOrdinal& page_ordinal) const {
62 return syncer::StringOrdinal(kFirstApp);
63 }
64
65 syncer::StringOrdinal ShellAppSorting::CreateNextAppLaunchOrdinal(
66 const syncer::StringOrdinal& page_ordinal) const {
67 return syncer::StringOrdinal(kNextApp);
68 }
69
70 syncer::StringOrdinal ShellAppSorting::CreateFirstAppPageOrdinal() const {
71 return syncer::StringOrdinal(kFirstPage);
72 }
73
74 syncer::StringOrdinal ShellAppSorting::GetNaturalAppPageOrdinal() const {
75 return syncer::StringOrdinal(kFirstPage);
76 }
77
78 syncer::StringOrdinal ShellAppSorting::GetPageOrdinal(
79 const std::string& extension_id) const {
80 return syncer::StringOrdinal(kFirstPage);
81 }
82
83 void ShellAppSorting::SetPageOrdinal(
84 const std::string& extension_id,
85 const syncer::StringOrdinal& new_page_ordinal) {
86 }
87
88 void ShellAppSorting::ClearOrdinals(const std::string& extension_id) {
89 }
90
91 int ShellAppSorting::PageStringOrdinalAsInteger(
92 const syncer::StringOrdinal& page_ordinal) const {
93 return 0;
94 }
95
96 syncer::StringOrdinal ShellAppSorting::PageIntegerAsStringOrdinal(
97 size_t page_index) {
98 return syncer::StringOrdinal(kFirstPage);
99 }
100
101 void ShellAppSorting::SetExtensionVisible(const std::string& extension_id,
102 bool visible) {
103 }
104
105 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_app_sorting.h ('k') | extensions/shell/browser/shell_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698