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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_api.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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) 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_EXTENSIONS_API_TABS_TABS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/extensions/extension_function.h" 12 #include "chrome/browser/extensions/extension_function.h"
13 #include "chrome/common/extensions/user_script.h" 13 #include "chrome/common/extensions/user_script.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "extensions/common/extension_resource.h" 16 #include "extensions/common/extension_resource.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 18
19 class BackingStore; 19 class BackingStore;
20 class GURL; 20 class GURL;
21 class PrefRegistrySyncable;
22 class SkBitmap; 21 class SkBitmap;
23 22
24 namespace base { 23 namespace base {
25 class DictionaryValue; 24 class DictionaryValue;
26 } 25 }
27 26
28 namespace content { 27 namespace content {
29 class WebContents; 28 class WebContents;
30 } 29 }
31 30
32 namespace extensions { 31 namespace extensions {
33 namespace api { 32 namespace api {
34 namespace tabs { 33 namespace tabs {
35 struct InjectDetails; 34 struct InjectDetails;
36 } // namespace tabs 35 } // namespace tabs
37 } // namespace api 36 } // namespace api
38 } // namespace extensions 37 } // namespace extensions
39 38
39 namespace user_prefs {
40 class PrefRegistrySyncable;
41 }
42
40 // Windows 43 // Windows
41 class WindowsGetFunction : public SyncExtensionFunction { 44 class WindowsGetFunction : public SyncExtensionFunction {
42 virtual ~WindowsGetFunction() {} 45 virtual ~WindowsGetFunction() {}
43 virtual bool RunImpl() OVERRIDE; 46 virtual bool RunImpl() OVERRIDE;
44 DECLARE_EXTENSION_FUNCTION("windows.get", WINDOWS_GET) 47 DECLARE_EXTENSION_FUNCTION("windows.get", WINDOWS_GET)
45 }; 48 };
46 class WindowsGetCurrentFunction : public SyncExtensionFunction { 49 class WindowsGetCurrentFunction : public SyncExtensionFunction {
47 virtual ~WindowsGetCurrentFunction() {} 50 virtual ~WindowsGetCurrentFunction() {}
48 virtual bool RunImpl() OVERRIDE; 51 virtual bool RunImpl() OVERRIDE;
49 DECLARE_EXTENSION_FUNCTION("windows.getCurrent", WINDOWS_GETCURRENT) 52 DECLARE_EXTENSION_FUNCTION("windows.getCurrent", WINDOWS_GETCURRENT)
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 172
170 virtual void Observe(int type, 173 virtual void Observe(int type,
171 const content::NotificationSource& source, 174 const content::NotificationSource& source,
172 const content::NotificationDetails& details) OVERRIDE; 175 const content::NotificationDetails& details) OVERRIDE;
173 void GotLanguage(const std::string& language); 176 void GotLanguage(const std::string& language);
174 content::NotificationRegistrar registrar_; 177 content::NotificationRegistrar registrar_;
175 DECLARE_EXTENSION_FUNCTION("tabs.detectLanguage", TABS_DETECTLANGUAGE) 178 DECLARE_EXTENSION_FUNCTION("tabs.detectLanguage", TABS_DETECTLANGUAGE)
176 }; 179 };
177 class TabsCaptureVisibleTabFunction : public AsyncExtensionFunction { 180 class TabsCaptureVisibleTabFunction : public AsyncExtensionFunction {
178 public: 181 public:
179 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 182 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
180 183
181 protected: 184 protected:
182 enum ImageFormat { 185 enum ImageFormat {
183 FORMAT_JPEG, 186 FORMAT_JPEG,
184 FORMAT_PNG 187 FORMAT_PNG
185 }; 188 };
186 189
187 // The default quality setting used when encoding jpegs. 190 // The default quality setting used when encoding jpegs.
188 static const int kDefaultQuality; 191 static const int kDefaultQuality;
189 192
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 }; 281 };
279 282
280 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction { 283 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction {
281 private: 284 private:
282 virtual ~TabsInsertCSSFunction() {} 285 virtual ~TabsInsertCSSFunction() {}
283 286
284 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS) 287 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS)
285 }; 288 };
286 289
287 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ 290 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698