| OLD | NEW |
| 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 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
| 13 #include "ppapi/c/private/ppb_flash_clipboard.h" | 13 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| 14 #include "ppapi/shared_impl/var.h" | 14 #include "ppapi/shared_impl/var.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebClipboard.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebClipboard
.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitPlatformSupport
.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo
rmSupport.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 20 #include "webkit/plugins/ppapi/common.h" | 20 #include "webkit/plugins/ppapi/common.h" |
| 21 #include "webkit/plugins/ppapi/host_globals.h" | 21 #include "webkit/plugins/ppapi/host_globals.h" |
| 22 #include "webkit/plugins/ppapi/plugin_module.h" | 22 #include "webkit/plugins/ppapi/plugin_module.h" |
| 23 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 23 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 24 | 24 |
| 25 using ppapi::StringVar; | 25 using ppapi::StringVar; |
| 26 | 26 |
| 27 namespace webkit { | 27 namespace webkit { |
| 28 namespace ppapi { | 28 namespace ppapi { |
| 29 | 29 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 return PP_ERROR_FAILED; | 124 return PP_ERROR_FAILED; |
| 125 } | 125 } |
| 126 | 126 |
| 127 web_clipboard->writePlainText( | 127 web_clipboard->writePlainText( |
| 128 WebKit::WebCString(text_string->value()).utf16()); | 128 WebKit::WebCString(text_string->value()).utf16()); |
| 129 return PP_OK; | 129 return PP_OK; |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace ppapi | 132 } // namespace ppapi |
| 133 } // namespace webkit | 133 } // namespace webkit |
| OLD | NEW |