OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
7 | 7 |
8 #include "content/browser/renderer_host/input/web_input_event_util.h" | 8 #include "content/browser/renderer_host/input/web_input_event_util.h" |
9 | 9 |
10 #include <cmath> | 10 #include <cmath> |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 if (modifiers & blink::WebInputEvent::LeftButtonDown) | 175 if (modifiers & blink::WebInputEvent::LeftButtonDown) |
176 flags |= ui::EF_LEFT_MOUSE_BUTTON; | 176 flags |= ui::EF_LEFT_MOUSE_BUTTON; |
177 if (modifiers & blink::WebInputEvent::MiddleButtonDown) | 177 if (modifiers & blink::WebInputEvent::MiddleButtonDown) |
178 flags |= ui::EF_MIDDLE_MOUSE_BUTTON; | 178 flags |= ui::EF_MIDDLE_MOUSE_BUTTON; |
179 if (modifiers & blink::WebInputEvent::RightButtonDown) | 179 if (modifiers & blink::WebInputEvent::RightButtonDown) |
180 flags |= ui::EF_RIGHT_MOUSE_BUTTON; | 180 flags |= ui::EF_RIGHT_MOUSE_BUTTON; |
181 if (modifiers & blink::WebInputEvent::CapsLockOn) | 181 if (modifiers & blink::WebInputEvent::CapsLockOn) |
182 flags |= ui::EF_CAPS_LOCK_DOWN; | 182 flags |= ui::EF_CAPS_LOCK_DOWN; |
183 if (modifiers & blink::WebInputEvent::IsAutoRepeat) | 183 if (modifiers & blink::WebInputEvent::IsAutoRepeat) |
184 flags |= ui::EF_IS_REPEAT; | 184 flags |= ui::EF_IS_REPEAT; |
185 if (modifiers & blink::WebInputEvent::IsKeyPad) | |
186 flags |= ui::EF_NUMPAD_KEY; | |
187 | 185 |
188 return flags; | 186 return flags; |
189 } | 187 } |
190 | 188 |
191 } // namespace content | 189 } // namespace content |
OLD | NEW |