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

Side by Side Diff: webkit/tools/test_shell/simple_clipboard_impl.h

Issue 8591030: Move clipboard-related webkit_glue embedder functions into a ClipboardClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_
7
8 #include "webkit/glue/clipboard_client.h"
9
10 class SimpleClipboardClient: public webkit_glue::ClipboardClient {
11 public:
12 SimpleClipboardClient();
13 virtual ~SimpleClipboardClient();
14
15 virtual ui::Clipboard* GetClipboard();
16 virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer);
17 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format,
18 ui::Clipboard::Buffer buffer);
19 virtual void ReadAvailableTypes(ui::Clipboard::Buffer buffer,
20 std::vector<string16>* types,
21 bool* contains_filenames);
22 virtual void ReadText(ui::Clipboard::Buffer buffer, string16* result);
23 virtual void ReadAsciiText(ui::Clipboard::Buffer buffer,
24 std::string* result);
25 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup,
26 GURL* url, uint32* fragment_start,
27 uint32* fragment_end);
28 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data);
29 virtual WriteContext* CreateWriteContext();
30 };
31
32
sky 2011/11/21 15:13:17 nit: only one empty line.
piman 2011/11/21 20:27:14 Done.
33 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698