Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: chrome/browser/extensions/extension_clipboard_api.h

Issue 882003: Implement chrome.experimental.clipboard extension API. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_clipboard_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_clipboard_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698