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

Side by Side Diff: ui/base/clipboard/clipboard.h

Issue 9318003: Update WebClipboard/WebDropData glue to use new getter/setter for WebDragData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 10 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 | ui/base/clipboard/clipboard.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_H_ 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_H_
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_H_ 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 23 matching lines...) Expand all
34 #ifdef __OBJC__ 34 #ifdef __OBJC__
35 @class NSString; 35 @class NSString;
36 #else 36 #else
37 class NSString; 37 class NSString;
38 #endif 38 #endif
39 39
40 namespace ui { 40 namespace ui {
41 41
42 class UI_EXPORT Clipboard { 42 class UI_EXPORT Clipboard {
43 public: 43 public:
44 // MIME type constants.
45 static const char kMimeTypeText[];
46 static const char kMimeTypeURIList[];
47 static const char kMimeTypeDownloadURL[];
48 static const char kMimeTypeHTML[];
49 static const char kMimeTypePNG[];
50
44 // Platform neutral holder for native data representation of a clipboard type. 51 // Platform neutral holder for native data representation of a clipboard type.
45 struct UI_EXPORT FormatType { 52 struct UI_EXPORT FormatType {
46 FormatType(); 53 FormatType();
47 ~FormatType(); 54 ~FormatType();
48 55
49 std::string Serialize() const; 56 std::string Serialize() const;
50 static FormatType Deserialize(const std::string& serialization); 57 static FormatType Deserialize(const std::string& serialization);
51 58
52 private: 59 private:
53 friend class Clipboard; 60 friend class Clipboard;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 void InsertMapping(const char* key, char* data, size_t data_len); 323 void InsertMapping(const char* key, char* data, size_t data_len);
317 324
318 // Find the gtk clipboard for the passed buffer enum. 325 // Find the gtk clipboard for the passed buffer enum.
319 GtkClipboard* LookupBackingClipboard(Buffer clipboard) const; 326 GtkClipboard* LookupBackingClipboard(Buffer clipboard) const;
320 327
321 TargetMap* clipboard_data_; 328 TargetMap* clipboard_data_;
322 GtkClipboard* clipboard_; 329 GtkClipboard* clipboard_;
323 GtkClipboard* primary_selection_; 330 GtkClipboard* primary_selection_;
324 #endif 331 #endif
325 332
326 // MIME type constants.
327 static const char kMimeTypeText[];
328 static const char kMimeTypeHTML[];
329 static const char kMimeTypePNG[];
330
331 DISALLOW_COPY_AND_ASSIGN(Clipboard); 333 DISALLOW_COPY_AND_ASSIGN(Clipboard);
332 }; 334 };
333 335
334 } // namespace ui 336 } // namespace ui
335 337
336 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ 338 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/clipboard/clipboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698