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 | |
74 bool Instance::HandleInputEvent(const InputEvent& /*event*/) { | 70 bool Instance::HandleInputEvent(const InputEvent& /*event*/) { |
75 return false; | 71 return false; |
76 } | 72 } |
77 | 73 |
78 void Instance::HandleMessage(const Var& /*message*/) { | 74 void Instance::HandleMessage(const Var& /*message*/) { |
79 return; | 75 return; |
80 } | 76 } |
81 | 77 |
82 bool Instance::BindGraphics(const Graphics2D& graphics) { | 78 bool Instance::BindGraphics(const Graphics2D& graphics) { |
83 if (!has_interface<PPB_Instance>()) | 79 if (!has_interface<PPB_Instance>()) |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 if (!that) | 164 if (!that) |
169 return NULL; | 165 return NULL; |
170 InterfaceNameToObjectMap::iterator found = | 166 InterfaceNameToObjectMap::iterator found = |
171 that->interface_name_to_objects_.find(interface_name); | 167 that->interface_name_to_objects_.find(interface_name); |
172 if (found == that->interface_name_to_objects_.end()) | 168 if (found == that->interface_name_to_objects_.end()) |
173 return NULL; | 169 return NULL; |
174 return found->second; | 170 return found->second; |
175 } | 171 } |
176 | 172 |
177 } // namespace pp | 173 } // namespace pp |
OLD | NEW |