| 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 #ifndef PPAPI_CPP_INPUT_EVENT_H_ | 5 #ifndef PPAPI_CPP_INPUT_EVENT_H_ |
| 6 #define PPAPI_CPP_INPUT_EVENT_H_ | 6 #define PPAPI_CPP_INPUT_EVENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ppapi/c/ppb_input_event.h" | 10 #include "ppapi/c/ppb_input_event.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 class WheelInputEvent : public InputEvent { | 169 class WheelInputEvent : public InputEvent { |
| 170 public: | 170 public: |
| 171 /// Constructs an is_null() wheel input event object. | 171 /// Constructs an is_null() wheel input event object. |
| 172 WheelInputEvent(); | 172 WheelInputEvent(); |
| 173 | 173 |
| 174 /// This constructor constructs a wheel input event object from the | 174 /// This constructor constructs a wheel input event object from the |
| 175 /// provided generic input event. If the given event is itself | 175 /// provided generic input event. If the given event is itself |
| 176 /// is_null() or is not a wheel input event, the wheel object will be | 176 /// is_null() or is not a wheel input event, the wheel object will be |
| 177 /// is_null(). | 177 /// is_null(). |
| 178 /// | 178 /// |
| 179 /// @param[in] A generic input event. | 179 /// @param[in] event A generic input event. |
| 180 explicit WheelInputEvent(const InputEvent& event); | 180 explicit WheelInputEvent(const InputEvent& event); |
| 181 | 181 |
| 182 /// Constructs a wheel input even from the given parameters. | 182 /// Constructs a wheel input even from the given parameters. |
| 183 /// | 183 /// |
| 184 /// @param[in] instance The instance for which this event occured. | 184 /// @param[in] instance The instance for which this event occured. |
| 185 /// | 185 /// |
| 186 /// @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time | 186 /// @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time |
| 187 /// when the event occured. | 187 /// when the event occured. |
| 188 /// | 188 /// |
| 189 /// @param[in] modifiers A bit field combination of the | 189 /// @param[in] modifiers A bit field combination of the |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 /// | 298 /// |
| 299 /// @return A string var representing a single typed character for character | 299 /// @return A string var representing a single typed character for character |
| 300 /// input events. For non-character input events the return value will be an | 300 /// input events. For non-character input events the return value will be an |
| 301 /// undefined var. | 301 /// undefined var. |
| 302 Var GetCharacterText() const; | 302 Var GetCharacterText() const; |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 } // namespace pp | 305 } // namespace pp |
| 306 | 306 |
| 307 #endif // PPAPI_CPP_INPUT_EVENT_H_ | 307 #endif // PPAPI_CPP_INPUT_EVENT_H_ |
| OLD | NEW |