| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_instance_proxy.h" | 5 #include "ppapi/proxy/ppb_instance_proxy.h" |
| 6 | 6 |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/c/pp_time.h" | 10 #include "ppapi/c/pp_time.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 return; | 77 return; |
| 78 proxy->OnMessageReceived(PpapiMsg_PPPTextInput_RequestSurroundingText( | 78 proxy->OnMessageReceived(PpapiMsg_PPPTextInput_RequestSurroundingText( |
| 79 API_ID_PPP_TEXT_INPUT, instance, | 79 API_ID_PPP_TEXT_INPUT, instance, |
| 80 PPB_Instance_Shared::kExtraCharsForTextInput)); | 80 PPB_Instance_Shared::kExtraCharsForTextInput)); |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace | 83 } // namespace |
| 84 | 84 |
| 85 PPB_Instance_Proxy::PPB_Instance_Proxy(Dispatcher* dispatcher) | 85 PPB_Instance_Proxy::PPB_Instance_Proxy(Dispatcher* dispatcher) |
| 86 : InterfaceProxy(dispatcher), | 86 : InterfaceProxy(dispatcher), |
| 87 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { | 87 callback_factory_(this) { |
| 88 } | 88 } |
| 89 | 89 |
| 90 PPB_Instance_Proxy::~PPB_Instance_Proxy() { | 90 PPB_Instance_Proxy::~PPB_Instance_Proxy() { |
| 91 } | 91 } |
| 92 | 92 |
| 93 // static | 93 // static |
| 94 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoPrivate() { | 94 const InterfaceProxy::Info* PPB_Instance_Proxy::GetInfoPrivate() { |
| 95 static const Info info = { | 95 static const Info info = { |
| 96 ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(), | 96 ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(), |
| 97 PPB_INSTANCE_PRIVATE_INTERFACE_0_1, | 97 PPB_INSTANCE_PRIVATE_INTERFACE_0_1, |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 PP_Instance instance) { | 1242 PP_Instance instance) { |
| 1243 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> | 1243 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> |
| 1244 GetInstanceData(instance); | 1244 GetInstanceData(instance); |
| 1245 if (!data) | 1245 if (!data) |
| 1246 return; // Instance was probably deleted. | 1246 return; // Instance was probably deleted. |
| 1247 data->should_do_request_surrounding_text = false; | 1247 data->should_do_request_surrounding_text = false; |
| 1248 } | 1248 } |
| 1249 | 1249 |
| 1250 } // namespace proxy | 1250 } // namespace proxy |
| 1251 } // namespace ppapi | 1251 } // namespace ppapi |
| OLD | NEW |