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

Unified Diff: webkit/glue/clipboard_client.h

Issue 17420005: Move the following clipboard files from webkit\glue to webkit\renderer. These files now live in the… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/webclipboard_impl.cc ('k') | webkit/glue/scoped_clipboard_writer_glue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/clipboard_client.h
===================================================================
--- webkit/glue/clipboard_client.h (revision 207553)
+++ webkit/glue/clipboard_client.h (working copy)
@@ -1,84 +0,0 @@
-// Copyright (c) 2012 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_GLUE_CLIPBOARD_CLIENT_H_
-#define WEBKIT_GLUE_CLIPBOARD_CLIENT_H_
-
-#include "ui/base/clipboard/clipboard.h"
-
-class GURL;
-
-namespace webkit_glue {
-
-// Interface for the webkit glue embedder to implement to support clipboard.
-class ClipboardClient {
- public:
- class WriteContext {
- public:
- virtual ~WriteContext() { }
-
- // Writes bitmap data into the context, updating the ObjectMap.
- virtual void WriteBitmapFromPixels(ui::Clipboard::ObjectMap* objects,
- const void* pixels,
- const gfx::Size& size) = 0;
-
- // Flushes all gathered data.
- virtual void Flush(const ui::Clipboard::ObjectMap& objects) = 0;
- };
-
- virtual ~ClipboardClient() { }
-
- // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue.
- virtual ui::Clipboard* GetClipboard() = 0;
-
- // Get a sequence number which uniquely identifies clipboard state.
- virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer) = 0;
-
- // Tests whether the clipboard contains a certain format
- virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format,
- ui::Clipboard::Buffer buffer) = 0;
-
- // Clear the contents of the clipboard.
- virtual void Clear(ui::Clipboard::Buffer buffer) = 0;
-
- // Reads the available types from the clipboard, if available.
- virtual void ReadAvailableTypes(ui::Clipboard::Buffer buffer,
- std::vector<base::string16>* types,
- bool* contains_filenames) = 0;
-
- // Reads UNICODE text from the clipboard, if available.
- virtual void ReadText(ui::Clipboard::Buffer buffer,
- base::string16* result) = 0;
-
- // Reads ASCII text from the clipboard, if available.
- virtual void ReadAsciiText(ui::Clipboard::Buffer buffer,
- std::string* result) = 0;
-
- // Reads HTML from the clipboard, if available.
- virtual void ReadHTML(ui::Clipboard::Buffer buffer, base::string16* markup,
- GURL* url, uint32* fragment_start,
- uint32* fragment_end) = 0;
-
- // Reads RTF from the clipboard, if available.
- virtual void ReadRTF(ui::Clipboard::Buffer buffer, std::string* result) = 0;
-
- // Reads and image from the clipboard, if available.
- virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data) = 0;
-
- // Reads a custom data type from the clipboard, if available.
- virtual void ReadCustomData(ui::Clipboard::Buffer buffer,
- const base::string16& type,
- base::string16* data) = 0;
-
- // Reads raw data from the clipboard for a given format.
- virtual void ReadData(const ui::Clipboard::FormatType& format,
- std::string* data) = 0;
-
- // Creates a context to write clipboard data. May return NULL.
- virtual WriteContext* CreateWriteContext() = 0;
-};
-
-} // namespace webkit_glue
-
-#endif // WEBKIT_GLUE_CLIPBOARD_CLIENT_H_
« no previous file with comments | « content/renderer/webclipboard_impl.cc ('k') | webkit/glue/scoped_clipboard_writer_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698