Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: content/browser/renderer_host/input/web_input_event_util.cc

Issue 1120813002: Remove EF_FUNCTION_KEY and EF_NUMPAD_KEY. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments (wez@) Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/events/event_rewriter_unittest.cc ('k') | content/browser/renderer_host/web_input_event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698