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
3 // found in the LICENSE file.
5 // Defines the Chrome Extensions Tab Capture API functions for accessing
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_
11 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry.h"
12 #include "chrome/browser/extensions/chrome_extension_function.h"
13 #include "chrome/common/extensions/api/tab_capture.h"
15 namespace extensions
{
17 class TabCaptureCaptureFunction
: public ChromeSyncExtensionFunction
{
19 DECLARE_EXTENSION_FUNCTION("tabCapture.capture", TABCAPTURE_CAPTURE
)
22 virtual ~TabCaptureCaptureFunction() {}
25 virtual bool RunSync() OVERRIDE
;
28 class TabCaptureGetCapturedTabsFunction
: public ChromeSyncExtensionFunction
{
30 DECLARE_EXTENSION_FUNCTION("tabCapture.getCapturedTabs",
31 TABCAPTURE_GETCAPTUREDTABS
)
34 virtual ~TabCaptureGetCapturedTabsFunction() {}
37 virtual bool RunSync() OVERRIDE
;
40 } // namespace extensions
42 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_