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/input_event.h" | 5 #include "ppapi/cpp/input_event.h" |
6 | 6 |
7 #include "ppapi/cpp/common.h" | |
8 #include "ppapi/cpp/instance.h" | 7 #include "ppapi/cpp/instance.h" |
9 #include "ppapi/cpp/module.h" | 8 #include "ppapi/cpp/module.h" |
10 #include "ppapi/cpp/module_impl.h" | 9 #include "ppapi/cpp/module_impl.h" |
11 #include "ppapi/cpp/point.h" | 10 #include "ppapi/cpp/point.h" |
12 #include "ppapi/cpp/var.h" | 11 #include "ppapi/cpp/var.h" |
13 | 12 |
14 namespace pp { | 13 namespace pp { |
15 | 14 |
16 namespace { | 15 namespace { |
17 | 16 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 162 |
164 Var KeyboardInputEvent::GetCharacterText() const { | 163 Var KeyboardInputEvent::GetCharacterText() const { |
165 if (!has_interface<PPB_KeyboardInputEvent>()) | 164 if (!has_interface<PPB_KeyboardInputEvent>()) |
166 return PP_INPUTEVENT_TYPE_UNDEFINED; | 165 return PP_INPUTEVENT_TYPE_UNDEFINED; |
167 return Var(Var::PassRef(), | 166 return Var(Var::PassRef(), |
168 get_interface<PPB_KeyboardInputEvent>()->GetCharacterText( | 167 get_interface<PPB_KeyboardInputEvent>()->GetCharacterText( |
169 pp_resource())); | 168 pp_resource())); |
170 } | 169 } |
171 | 170 |
172 } // namespace pp | 171 } // namespace pp |
OLD | NEW |