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

Side by Side Diff: webkit/api/src/ChromiumBridge.cpp

Issue 211052: Implement ChromiumBridge::clipboardWritePlainText() (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « webkit/api/public/WebClipboard.h ('k') | webkit/glue/webclipboard_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 void ChromiumBridge::clipboardWriteSelection(const String& htmlText, 102 void ChromiumBridge::clipboardWriteSelection(const String& htmlText,
103 const KURL& sourceURL, 103 const KURL& sourceURL,
104 const String& plainText, 104 const String& plainText,
105 bool writeSmartPaste) 105 bool writeSmartPaste)
106 { 106 {
107 webKitClient()->clipboard()->writeHTML( 107 webKitClient()->clipboard()->writeHTML(
108 htmlText, sourceURL, plainText, writeSmartPaste); 108 htmlText, sourceURL, plainText, writeSmartPaste);
109 } 109 }
110 110
111 void ChromiumBridge::clipboardWritePlainText(const String& plainText)
112 {
113 webKitClient()->clipboard()->writePlainText(plainText);
114 }
115
111 void ChromiumBridge::clipboardWriteURL(const KURL& url, const String& title) 116 void ChromiumBridge::clipboardWriteURL(const KURL& url, const String& title)
112 { 117 {
113 webKitClient()->clipboard()->writeURL(url, title); 118 webKitClient()->clipboard()->writeURL(url, title);
114 } 119 }
115 120
116 void ChromiumBridge::clipboardWriteImage(const NativeImageSkia* image, 121 void ChromiumBridge::clipboardWriteImage(const NativeImageSkia* image,
117 const KURL& sourceURL, 122 const KURL& sourceURL,
118 const String& title) 123 const String& title)
119 { 124 {
120 #if WEBKIT_USING_SKIA 125 #if WEBKIT_USING_SKIA
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 { 565 {
561 return webKitClient()->widgetSetFocus(widget); 566 return webKitClient()->widgetSetFocus(widget);
562 } 567 }
563 568
564 WorkerContextProxy* WorkerContextProxy::create(Worker* worker) 569 WorkerContextProxy* WorkerContextProxy::create(Worker* worker)
565 { 570 {
566 return webKitClient()->createWorkerContextProxy(worker); 571 return webKitClient()->createWorkerContextProxy(worker);
567 } 572 }
568 573
569 } // namespace WebCore 574 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/api/public/WebClipboard.h ('k') | webkit/glue/webclipboard_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698