| 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 "ppapi/proxy/ppb_flash_clipboard_proxy.h" | 5 #include "ppapi/proxy/ppb_flash_clipboard_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/private/ppb_flash_clipboard.h" | 8 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| 9 #include "ppapi/proxy/plugin_dispatcher.h" | 9 #include "ppapi/proxy/plugin_dispatcher.h" |
| 10 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 int clipboard_type, | 141 int clipboard_type, |
| 142 SerializedVarReceiveInput text) { | 142 SerializedVarReceiveInput text) { |
| 143 EnterFlashClipboardNoLock enter(instance, true); | 143 EnterFlashClipboardNoLock enter(instance, true); |
| 144 if (enter.succeeded()) { | 144 if (enter.succeeded()) { |
| 145 int32_t result = enter.functions()->WritePlainText( | 145 int32_t result = enter.functions()->WritePlainText( |
| 146 instance, | 146 instance, |
| 147 static_cast<PP_Flash_Clipboard_Type>(clipboard_type), | 147 static_cast<PP_Flash_Clipboard_Type>(clipboard_type), |
| 148 text.Get(dispatcher())); | 148 text.Get(dispatcher())); |
| 149 DLOG_IF(WARNING, result != PP_OK) | 149 DLOG_IF(WARNING, result != PP_OK) |
| 150 << "Write to clipboard failed unexpectedly."; | 150 << "Write to clipboard failed unexpectedly."; |
| 151 (void)result; // Prevent warning in release mode. |
| 151 } | 152 } |
| 152 } | 153 } |
| 153 | 154 |
| 154 } // namespace proxy | 155 } // namespace proxy |
| 155 } // namespace ppapi | 156 } // namespace ppapi |
| OLD | NEW |