OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CLIPBOARD_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CLIPBOARD_API_H_ |
| 7 |
| 8 #include "chrome/browser/extensions/extension_function.h" |
| 9 |
| 10 class RenderViewHost; |
| 11 |
| 12 // Base class for clipboard function APIs. |
| 13 class ClipboardFunction : public SyncExtensionFunction { |
| 14 public: |
| 15 virtual bool RunImpl(); |
| 16 virtual bool RunImpl(RenderViewHost* render_view_host) = 0; |
| 17 }; |
| 18 |
| 19 class ExecuteCopyClipboardFunction : public ClipboardFunction { |
| 20 public: |
| 21 virtual bool RunImpl(RenderViewHost* render_view_host); |
| 22 DECLARE_EXTENSION_FUNCTION_NAME("experimental.clipboard.executeCopy"); |
| 23 }; |
| 24 |
| 25 class ExecuteCutClipboardFunction : public ClipboardFunction { |
| 26 public: |
| 27 virtual bool RunImpl(RenderViewHost* render_view_host); |
| 28 DECLARE_EXTENSION_FUNCTION_NAME("experimental.clipboard.executeCut"); |
| 29 }; |
| 30 |
| 31 class ExecutePasteClipboardFunction : public ClipboardFunction { |
| 32 public: |
| 33 virtual bool RunImpl(RenderViewHost* render_view_host); |
| 34 DECLARE_EXTENSION_FUNCTION_NAME("experimental.clipboard.executePaste"); |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CLIPBOARD_API_H_ |
| 38 |
OLD | NEW |