OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 PlatformWheelEventBuilder(Widget*, const WebMouseWheelEvent&); | 66 PlatformWheelEventBuilder(Widget*, const WebMouseWheelEvent&); |
67 }; | 67 }; |
68 | 68 |
69 class PlatformGestureEventBuilder : public PlatformGestureEvent { | 69 class PlatformGestureEventBuilder : public PlatformGestureEvent { |
70 public: | 70 public: |
71 PlatformGestureEventBuilder(Widget*, const WebGestureEvent&); | 71 PlatformGestureEventBuilder(Widget*, const WebGestureEvent&); |
72 }; | 72 }; |
73 | 73 |
74 class PlatformKeyboardEventBuilder : public PlatformKeyboardEvent { | 74 class PlatformKeyboardEventBuilder : public PlatformKeyboardEvent { |
75 public: | 75 public: |
76 PlatformKeyboardEventBuilder(const WebKeyboardEvent&); | 76 PlatformKeyboardEventBuilder(Widget*, const WebKeyboardEvent&); |
77 void setKeyType(Type); | 77 void setKeyType(Type); |
78 bool isCharacterKey() const; | 78 bool isCharacterKey() const; |
79 }; | 79 }; |
80 | 80 |
81 // Converts a WebTouchPoint to a PlatformTouchPoint. | 81 // Converts a WebTouchPoint to a PlatformTouchPoint. |
82 class PlatformTouchPointBuilder : public PlatformTouchPoint { | 82 class PlatformTouchPointBuilder : public PlatformTouchPoint { |
83 public: | 83 public: |
84 PlatformTouchPointBuilder(Widget*, const WebTouchPoint&); | 84 PlatformTouchPointBuilder(Widget*, const WebTouchPoint&); |
85 }; | 85 }; |
86 | 86 |
(...skipping 26 matching lines...) Expand all Loading... |
113 WebMouseWheelEventBuilder(const Widget*, const RenderObject*, const WheelEve
nt&); | 113 WebMouseWheelEventBuilder(const Widget*, const RenderObject*, const WheelEve
nt&); |
114 }; | 114 }; |
115 | 115 |
116 // Converts a KeyboardEvent or PlatformKeyboardEvent to a | 116 // Converts a KeyboardEvent or PlatformKeyboardEvent to a |
117 // corresponding WebKeyboardEvent. | 117 // corresponding WebKeyboardEvent. |
118 // NOTE: For KeyboardEvent, this is only implemented for keydown, | 118 // NOTE: For KeyboardEvent, this is only implemented for keydown, |
119 // keyup, and keypress. If the event mapping fails, the event type will be set | 119 // keyup, and keypress. If the event mapping fails, the event type will be set |
120 // to Undefined. | 120 // to Undefined. |
121 class WebKeyboardEventBuilder : public WebKeyboardEvent { | 121 class WebKeyboardEventBuilder : public WebKeyboardEvent { |
122 public: | 122 public: |
123 WebKeyboardEventBuilder(const KeyboardEvent&); | 123 WebKeyboardEventBuilder(const Widget*, const KeyboardEvent&); |
124 WebKeyboardEventBuilder(const PlatformKeyboardEvent&); | 124 WebKeyboardEventBuilder(const Widget*, const PlatformKeyboardEvent&); |
125 }; | 125 }; |
126 | 126 |
127 // Converts a TouchEvent to a corresponding WebTouchEvent. | 127 // Converts a TouchEvent to a corresponding WebTouchEvent. |
128 // NOTE: WebTouchEvents have a cap on the number of WebTouchPoints. Any points | 128 // NOTE: WebTouchEvents have a cap on the number of WebTouchPoints. Any points |
129 // exceeding that cap will be dropped. | 129 // exceeding that cap will be dropped. |
130 class WebTouchEventBuilder : public WebTouchEvent { | 130 class WebTouchEventBuilder : public WebTouchEvent { |
131 public: | 131 public: |
132 WebTouchEventBuilder(const Widget*, const RenderObject*, const TouchEvent&); | 132 WebTouchEventBuilder(const Widget*, const RenderObject*, const TouchEvent&); |
133 }; | 133 }; |
134 | 134 |
135 // Converts GestureEvent to a corresponding WebGestureEvent. | 135 // Converts GestureEvent to a corresponding WebGestureEvent. |
136 // NOTE: If event mapping fails, the type will be set to Undefined. | 136 // NOTE: If event mapping fails, the type will be set to Undefined. |
137 class WebGestureEventBuilder : public WebGestureEvent { | 137 class WebGestureEventBuilder : public WebGestureEvent { |
138 public: | 138 public: |
139 WebGestureEventBuilder(const Widget*, const RenderObject*, const GestureEven
t&); | 139 WebGestureEventBuilder(const Widget*, const RenderObject*, const GestureEven
t&); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace blink | 142 } // namespace blink |
143 | 143 |
144 #endif | 144 #endif |
OLD | NEW |