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

Side by Side Diff: webkit/glue/webclipboard_impl.cc

Issue 3219002: FBTF: Move code from headers into cc files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "webkit/glue/webclipboard_impl.h" 5 #include "webkit/glue/webclipboard_impl.h"
6 6
7 #include "app/clipboard/clipboard.h" 7 #include "app/clipboard/clipboard.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 markup.append("\""); 51 markup.append("\"");
52 if (!title.isEmpty()) { 52 if (!title.isEmpty()) {
53 markup.append(" alt=\""); 53 markup.append(" alt=\"");
54 markup.append(EscapeForHTML(UTF16ToUTF8(title))); 54 markup.append(EscapeForHTML(UTF16ToUTF8(title)));
55 markup.append("\""); 55 markup.append("\"");
56 } 56 }
57 markup.append("/>"); 57 markup.append("/>");
58 return markup; 58 return markup;
59 } 59 }
60 60
61 WebClipboardImpl::~WebClipboardImpl() {
62 }
63
61 bool WebClipboardImpl::isFormatAvailable(Format format, Buffer buffer) { 64 bool WebClipboardImpl::isFormatAvailable(Format format, Buffer buffer) {
62 Clipboard::FormatType format_type; 65 Clipboard::FormatType format_type;
63 Clipboard::Buffer buffer_type; 66 Clipboard::Buffer buffer_type;
64 67
65 switch (format) { 68 switch (format) {
66 case FormatHTML: 69 case FormatHTML:
67 format_type = Clipboard::GetHtmlFormatType(); 70 format_type = Clipboard::GetHtmlFormatType();
68 break; 71 break;
69 case FormatSmartPaste: 72 case FormatSmartPaste:
70 format_type = Clipboard::GetWebKitSmartPasteFormatType(); 73 format_type = Clipboard::GetWebKitSmartPasteFormatType();
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 break; 225 break;
223 #endif 226 #endif
224 default: 227 default:
225 NOTREACHED(); 228 NOTREACHED();
226 return false; 229 return false;
227 } 230 }
228 return true; 231 return true;
229 } 232 }
230 233
231 } // namespace webkit_glue 234 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698