| Index: chrome/browser/extensions/api/tab_capture/tab_capture_api.h
|
| diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_api.h b/chrome/browser/extensions/api/tab_capture/tab_capture_api.h
|
| index baba0ee8e725c0798a1bad7b9630e313b32ef40e..9f7ce63e788a596add64f6954636deec4bc41c2f 100644
|
| --- a/chrome/browser/extensions/api/tab_capture/tab_capture_api.h
|
| +++ b/chrome/browser/extensions/api/tab_capture/tab_capture_api.h
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry.h"
|
| #include "chrome/browser/extensions/chrome_extension_function.h"
|
| #include "chrome/common/extensions/api/tab_capture.h"
|
| +#include "chrome/common/extensions/api/tab_capture_private.h"
|
|
|
| namespace extensions {
|
|
|
| @@ -21,11 +22,11 @@ class TabCaptureCaptureFunction : public ChromeSyncExtensionFunction {
|
| public:
|
| DECLARE_EXTENSION_FUNCTION("tabCapture.capture", TABCAPTURE_CAPTURE)
|
|
|
| - protected:
|
| - ~TabCaptureCaptureFunction() override {}
|
| + private:
|
| + ~TabCaptureCaptureFunction() final {}
|
|
|
| // ExtensionFunction:
|
| - bool RunSync() override;
|
| + bool RunSync() final;
|
| };
|
|
|
| class TabCaptureGetCapturedTabsFunction : public ChromeSyncExtensionFunction {
|
| @@ -33,11 +34,42 @@ class TabCaptureGetCapturedTabsFunction : public ChromeSyncExtensionFunction {
|
| DECLARE_EXTENSION_FUNCTION("tabCapture.getCapturedTabs",
|
| TABCAPTURE_GETCAPTUREDTABS)
|
|
|
| - protected:
|
| - ~TabCaptureGetCapturedTabsFunction() override {}
|
| + private:
|
| + ~TabCaptureGetCapturedTabsFunction() final {}
|
|
|
| // ExtensionFunction:
|
| - bool RunSync() override;
|
| + bool RunSync() final;
|
| +};
|
| +
|
| +class TabCaptureCaptureOffscreenTabFunction : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("tabCapture.captureOffscreenTab",
|
| + TABCAPTURE_CAPTUREOFFSCREENTAB)
|
| +
|
| + // Examines the min/max width/height constraints in the |options| to determine
|
| + // a suitable initial off-screen tab size.
|
| + static gfx::Size DetermineInitialSize(
|
| + const extensions::api::tab_capture::CaptureOptions& options);
|
| +
|
| + private:
|
| + ~TabCaptureCaptureOffscreenTabFunction() final {}
|
| +
|
| + // ExtensionFunction:
|
| + bool RunSync() final;
|
| +};
|
| +
|
| +class TabCapturePrivateRegisterOffscreenTabAsPresentationFunction
|
| + : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION(
|
| + "tabCapturePrivate.registerOffscreenTabAsPresentation",
|
| + TABCAPTUREPRIVATE_REGISTEROFFSCREENTABASPRESENTATION)
|
| +
|
| + private:
|
| + ~TabCapturePrivateRegisterOffscreenTabAsPresentationFunction() final {}
|
| +
|
| + // ExtensionFunction:
|
| + bool RunSync() final;
|
| };
|
|
|
| } // namespace extensions
|
|
|