| OLD | NEW |
| 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 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 virtual void Observe(int type, | 184 virtual void Observe(int type, |
| 185 const content::NotificationSource& source, | 185 const content::NotificationSource& source, |
| 186 const content::NotificationDetails& details) OVERRIDE; | 186 const content::NotificationDetails& details) OVERRIDE; |
| 187 void GotLanguage(const std::string& language); | 187 void GotLanguage(const std::string& language); |
| 188 content::NotificationRegistrar registrar_; | 188 content::NotificationRegistrar registrar_; |
| 189 DECLARE_EXTENSION_FUNCTION("tabs.detectLanguage", TABS_DETECTLANGUAGE) | 189 DECLARE_EXTENSION_FUNCTION("tabs.detectLanguage", TABS_DETECTLANGUAGE) |
| 190 }; | 190 }; |
| 191 class TabsCaptureVisibleTabFunction : public AsyncExtensionFunction { | 191 class TabsCaptureVisibleTabFunction : public AsyncExtensionFunction { |
| 192 public: | 192 public: |
| 193 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 193 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 194 | 194 |
| 195 protected: | 195 protected: |
| 196 typedef api::tabs::CaptureVisibleTab::Params::Options::Format ImageFormat; | 196 typedef api::tabs::CaptureVisibleTab::Params::Options::Format ImageFormat; |
| 197 | 197 |
| 198 // The default quality setting used when encoding jpegs. | 198 // The default quality setting used when encoding jpegs. |
| 199 static const int kDefaultQuality; | 199 static const int kDefaultQuality; |
| 200 | 200 |
| 201 virtual ~TabsCaptureVisibleTabFunction() {} | 201 virtual ~TabsCaptureVisibleTabFunction() {} |
| 202 virtual bool RunImpl() OVERRIDE; | 202 virtual bool RunImpl() OVERRIDE; |
| 203 virtual bool GetTabToCapture(content::WebContents** web_contents); | 203 virtual bool GetTabToCapture(content::WebContents** web_contents); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 virtual ~TabsInsertCSSFunction() {} | 267 virtual ~TabsInsertCSSFunction() {} |
| 268 | 268 |
| 269 virtual bool ShouldInsertCSS() const OVERRIDE; | 269 virtual bool ShouldInsertCSS() const OVERRIDE; |
| 270 | 270 |
| 271 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS) | 271 DECLARE_EXTENSION_FUNCTION("tabs.insertCSS", TABS_INSERTCSS) |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 } // namespace extensions | 274 } // namespace extensions |
| 275 | 275 |
| 276 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ | 276 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ |
| OLD | NEW |