| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the API used to handle mouse and keyboard input events. | 7 * This file defines the API used to handle mouse and keyboard input events. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 * This values represents the y coordinate of the mouse when the event | 105 * This values represents the y coordinate of the mouse when the event |
| 106 * occurred. | 106 * occurred. |
| 107 * | 107 * |
| 108 * In most, but not all, cases these coordinates will just be integers. | 108 * In most, but not all, cases these coordinates will just be integers. |
| 109 * For example, the plugin element might be arbitrarily scaled or transformed | 109 * For example, the plugin element might be arbitrarily scaled or transformed |
| 110 * in the DOM, and translating a mouse event into the coordinate space of the | 110 * in the DOM, and translating a mouse event into the coordinate space of the |
| 111 * plugin will give non-integer values. | 111 * plugin will give non-integer values. |
| 112 */ | 112 */ |
| 113 float_t y; | 113 float_t y; |
| 114 | 114 |
| 115 // TODO(brettw) figure out exactly what this means. | 115 /* TODO(brettw) figure out exactly what this means.*/ |
| 116 int32_t click_count; | 116 int32_t click_count; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 /** | 119 /** |
| 120 * The <code>PP_InputEvent_Wheel</code> struct represents all mouse wheel | 120 * The <code>PP_InputEvent_Wheel</code> struct represents all mouse wheel |
| 121 * events. | 121 * events. |
| 122 */ | 122 */ |
| 123 [assert_size(24)] struct PP_InputEvent_Wheel { | 123 [assert_size(24)] struct PP_InputEvent_Wheel { |
| 124 /** | 124 /** |
| 125 * This value represents a combination of the <code>EVENT_MODIFIER</code> | 125 * This value represents a combination of the <code>EVENT_MODIFIER</code> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 float_t wheel_ticks_y; | 194 float_t wheel_ticks_y; |
| 195 | 195 |
| 196 /** | 196 /** |
| 197 * Indicates if the scroll <code>delta_x</code>/<code>delta_y</code> | 197 * Indicates if the scroll <code>delta_x</code>/<code>delta_y</code> |
| 198 * indicates pages or lines to scroll by. When true, the user is requesting | 198 * indicates pages or lines to scroll by. When true, the user is requesting |
| 199 * to scroll by pages. | 199 * to scroll by pages. |
| 200 */ | 200 */ |
| 201 PP_Bool scroll_by_page; | 201 PP_Bool scroll_by_page; |
| 202 }; | 202 }; |
| 203 | 203 |
| OLD | NEW |