| 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_proxy.h" | 5 #include "ppapi/proxy/ppb_flash_proxy.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "ppapi/c/dev/ppb_font_dev.h" | 10 #include "ppapi/c/dev/ppb_font_dev.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 PPB_Flash_Proxy::~PPB_Flash_Proxy() { | 225 PPB_Flash_Proxy::~PPB_Flash_Proxy() { |
| 226 } | 226 } |
| 227 | 227 |
| 228 // static | 228 // static |
| 229 const PPB_Flash_11* PPB_Flash_Proxy::GetInterface11() { | 229 const PPB_Flash_11* PPB_Flash_Proxy::GetInterface11() { |
| 230 return &flash_interface_11; | 230 return &flash_interface_11; |
| 231 } | 231 } |
| 232 | 232 |
| 233 // static | 233 // static |
| 234 const PPB_Flash* PPB_Flash_Proxy::GetInterface12() { | 234 const PPB_Flash* PPB_Flash_Proxy::GetInterface12_0() { |
| 235 return &flash_interface_12; | 235 return &flash_interface_12; |
| 236 } | 236 } |
| 237 | 237 |
| 238 bool PPB_Flash_Proxy::OnMessageReceived(const IPC::Message& msg) { | 238 bool PPB_Flash_Proxy::OnMessageReceived(const IPC::Message& msg) { |
| 239 // Prevent the dispatcher from going away during a call to Navigate. | 239 // Prevent the dispatcher from going away during a call to Navigate. |
| 240 // This must happen OUTSIDE of OnMsgNavigate since the handling code use | 240 // This must happen OUTSIDE of OnMsgNavigate since the handling code use |
| 241 // the dispatcher upon return of the function (sending the reply message). | 241 // the dispatcher upon return of the function (sending the reply message). |
| 242 ScopedModuleReference death_grip(dispatcher()); | 242 ScopedModuleReference death_grip(dispatcher()); |
| 243 | 243 |
| 244 bool handled = true; | 244 bool handled = true; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 } | 344 } |
| 345 | 345 |
| 346 void PPB_Flash_Proxy::OnMsgGetLocalTimeZoneOffset(PP_Instance instance, | 346 void PPB_Flash_Proxy::OnMsgGetLocalTimeZoneOffset(PP_Instance instance, |
| 347 PP_Time t, | 347 PP_Time t, |
| 348 double* result) { | 348 double* result) { |
| 349 *result = ppb_flash_impl_->GetLocalTimeZoneOffset(instance, t); | 349 *result = ppb_flash_impl_->GetLocalTimeZoneOffset(instance, t); |
| 350 } | 350 } |
| 351 | 351 |
| 352 } // namespace proxy | 352 } // namespace proxy |
| 353 } // namespace ppapi | 353 } // namespace ppapi |
| OLD | NEW |