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_EXTENSION_TABS_MODULE_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "chrome/browser/extensions/extension_function.h" | 13 #include "chrome/browser/extensions/extension_function.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 "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 | 17 |
18 class BackingStore; | 18 class BackingStore; |
19 class Extension; | |
20 class GURL; | 19 class GURL; |
21 class SkBitmap; | 20 class SkBitmap; |
22 class TabContentsWrapper; | 21 class TabContentsWrapper; |
| 22 |
23 namespace base { | 23 namespace base { |
24 class DictionaryValue; | 24 class DictionaryValue; |
25 } // namespace base | 25 } |
| 26 |
26 namespace content { | 27 namespace content { |
27 class WebContents; | 28 class WebContents; |
28 } // namespace content | 29 } |
| 30 |
29 namespace skia { | 31 namespace skia { |
30 class PlatformCanvas; | 32 class PlatformCanvas; |
31 } // namespace skia | 33 } |
32 | 34 |
33 // Windows | 35 // Windows |
34 class GetWindowFunction : public SyncExtensionFunction { | 36 class GetWindowFunction : public SyncExtensionFunction { |
35 virtual ~GetWindowFunction() {} | 37 virtual ~GetWindowFunction() {} |
36 virtual bool RunImpl() OVERRIDE; | 38 virtual bool RunImpl() OVERRIDE; |
37 DECLARE_EXTENSION_FUNCTION_NAME("windows.get") | 39 DECLARE_EXTENSION_FUNCTION_NAME("windows.get") |
38 }; | 40 }; |
39 class GetCurrentWindowFunction : public SyncExtensionFunction { | 41 class GetCurrentWindowFunction : public SyncExtensionFunction { |
40 virtual ~GetCurrentWindowFunction() {} | 42 virtual ~GetCurrentWindowFunction() {} |
41 virtual bool RunImpl() OVERRIDE; | 43 virtual bool RunImpl() OVERRIDE; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). | 189 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). |
188 ImageFormat image_format_; | 190 ImageFormat image_format_; |
189 | 191 |
190 // Quality setting to use when encoding jpegs. Set in RunImpl(). | 192 // Quality setting to use when encoding jpegs. Set in RunImpl(). |
191 int image_quality_; | 193 int image_quality_; |
192 | 194 |
193 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") | 195 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") |
194 }; | 196 }; |
195 | 197 |
196 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 198 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
OLD | NEW |