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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: webkit/tools/test_shell/simple_clipboard_impl.h
diff --git a/webkit/tools/test_shell/simple_clipboard_impl.h b/webkit/tools/test_shell/simple_clipboard_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..75d5b85d46bc229e576ed7f6f06e4eb569796c12
--- /dev/null
+++ b/webkit/tools/test_shell/simple_clipboard_impl.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_
+#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_
+
+#include "webkit/glue/clipboard_client.h"
+
+class SimpleClipboardClient: public webkit_glue::ClipboardClient {
+ public:
+ SimpleClipboardClient();
+ virtual ~SimpleClipboardClient();
+
+ virtual ui::Clipboard* GetClipboard();
+ virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer);
+ virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format,
+ ui::Clipboard::Buffer buffer);
+ virtual void ReadAvailableTypes(ui::Clipboard::Buffer buffer,
+ std::vector<string16>* types,
+ bool* contains_filenames);
+ virtual void ReadText(ui::Clipboard::Buffer buffer, string16* result);
+ virtual void ReadAsciiText(ui::Clipboard::Buffer buffer,
+ std::string* result);
+ virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup,
+ GURL* url, uint32* fragment_start,
+ uint32* fragment_end);
+ virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data);
+ virtual WriteContext* CreateWriteContext();
+};
+
+
sky 2011/11/21 15:13:17 nit: only one empty line.
piman 2011/11/21 20:27:14 Done.
+#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698