| 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/cpp/instance.h" | 5 #include "ppapi/cpp/instance.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/ppb_input_event.h" | 8 #include "ppapi/c/ppb_input_event.h" |
| 9 #include "ppapi/c/ppb_instance.h" | 9 #include "ppapi/c/ppb_instance.h" |
| 10 #include "ppapi/c/ppb_messaging.h" | 10 #include "ppapi/c/ppb_messaging.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 void Instance::DidChangeFocus(bool /*has_focus*/) { | 62 void Instance::DidChangeFocus(bool /*has_focus*/) { |
| 63 } | 63 } |
| 64 | 64 |
| 65 | 65 |
| 66 bool Instance::HandleDocumentLoad(const URLLoader& /*url_loader*/) { | 66 bool Instance::HandleDocumentLoad(const URLLoader& /*url_loader*/) { |
| 67 return false; | 67 return false; |
| 68 } | 68 } |
| 69 | 69 |
| 70 bool Instance::HandleInputEvent(const PP_InputEvent& /*event*/) { |
| 71 return false; |
| 72 } |
| 73 |
| 70 bool Instance::HandleInputEvent(const InputEvent& /*event*/) { | 74 bool Instance::HandleInputEvent(const InputEvent& /*event*/) { |
| 71 return false; | 75 return false; |
| 72 } | 76 } |
| 73 | 77 |
| 74 void Instance::HandleMessage(const Var& /*message*/) { | 78 void Instance::HandleMessage(const Var& /*message*/) { |
| 75 return; | 79 return; |
| 76 } | 80 } |
| 77 | 81 |
| 78 bool Instance::BindGraphics(const Graphics2D& graphics) { | 82 bool Instance::BindGraphics(const Graphics2D& graphics) { |
| 79 if (!has_interface<PPB_Instance>()) | 83 if (!has_interface<PPB_Instance>()) |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 if (!that) | 168 if (!that) |
| 165 return NULL; | 169 return NULL; |
| 166 InterfaceNameToObjectMap::iterator found = | 170 InterfaceNameToObjectMap::iterator found = |
| 167 that->interface_name_to_objects_.find(interface_name); | 171 that->interface_name_to_objects_.find(interface_name); |
| 168 if (found == that->interface_name_to_objects_.end()) | 172 if (found == that->interface_name_to_objects_.end()) |
| 169 return NULL; | 173 return NULL; |
| 170 return found->second; | 174 return found->second; |
| 171 } | 175 } |
| 172 | 176 |
| 173 } // namespace pp | 177 } // namespace pp |
| OLD | NEW |