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

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

Issue 8364037: Implement clipboard for aura and re-enable clipboard_unittests. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: modified according to comments 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
« no previous file with comments | « no previous file | ui/base/clipboard/clipboard_aura.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) 2011 The Chromium Authors. All rights reserved. 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 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void WriteObjects(const ObjectMap& objects); 120 void WriteObjects(const ObjectMap& objects);
121 121
122 // Behaves as above. If there is some shared memory handle passed as one of 122 // Behaves as above. If there is some shared memory handle passed as one of
123 // the objects, it came from the process designated by |process|. This will 123 // the objects, it came from the process designated by |process|. This will
124 // assist in turning it into a shared memory region that the current process 124 // assist in turning it into a shared memory region that the current process
125 // can use. 125 // can use.
126 void WriteObjects(const ObjectMap& objects, base::ProcessHandle process); 126 void WriteObjects(const ObjectMap& objects, base::ProcessHandle process);
127 127
128 // On Linux/BSD, we need to know when the clipboard is set to a URL. Most 128 // On Linux/BSD, we need to know when the clipboard is set to a URL. Most
129 // platforms don't care. 129 // platforms don't care.
130 #if defined(OS_WIN) || defined(OS_MACOSX) 130 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(USE_AURA)
131 void DidWriteURL(const std::string& utf8_text) {} 131 void DidWriteURL(const std::string& utf8_text) {}
132 #else // !defined(OS_WIN) && !defined(OS_MACOSX) 132 #else // !defined(OS_WIN) && !defined(OS_MACOSX)
133 void DidWriteURL(const std::string& utf8_text); 133 void DidWriteURL(const std::string& utf8_text);
134 #endif 134 #endif
135 135
136 // Tests whether the clipboard contains a certain format 136 // Tests whether the clipboard contains a certain format
137 bool IsFormatAvailable(const FormatType& format, Buffer buffer) const; 137 bool IsFormatAvailable(const FormatType& format, Buffer buffer) const;
138 138
139 // As above, but instead of interpreting |format| by some platform-specific 139 // As above, but instead of interpreting |format| by some platform-specific
140 // definition, interpret it as a literal MIME type. 140 // definition, interpret it as a literal MIME type.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 static const char kMimeTypeText[]; 289 static const char kMimeTypeText[];
290 static const char kMimeTypeHTML[]; 290 static const char kMimeTypeHTML[];
291 static const char kMimeTypePNG[]; 291 static const char kMimeTypePNG[];
292 292
293 DISALLOW_COPY_AND_ASSIGN(Clipboard); 293 DISALLOW_COPY_AND_ASSIGN(Clipboard);
294 }; 294 };
295 295
296 } // namespace ui 296 } // namespace ui
297 297
298 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ 298 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/clipboard/clipboard_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698