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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 #include "content/browser/renderer_host/input/web_input_event_builders_win.h" 5 #include "content/browser/renderer_host/input/web_input_event_builders_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
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 using WebKit::WebInputEvent; 10 using blink::WebInputEvent;
11 using WebKit::WebKeyboardEvent; 11 using blink::WebKeyboardEvent;
12 using WebKit::WebMouseEvent; 12 using blink::WebMouseEvent;
13 using WebKit::WebMouseWheelEvent; 13 using blink::WebMouseWheelEvent;
14 14
15 namespace content { 15 namespace content {
16 16
17 static const unsigned long kDefaultScrollLinesPerWheelDelta = 3; 17 static const unsigned long kDefaultScrollLinesPerWheelDelta = 3;
18 static const unsigned long kDefaultScrollCharsPerWheelDelta = 1; 18 static const unsigned long kDefaultScrollCharsPerWheelDelta = 1;
19 19
20 static bool IsKeyDown(WPARAM wparam) { 20 static bool IsKeyDown(WPARAM wparam) {
21 return (GetKeyState(wparam) & 0x8000) != 0; 21 return (GetKeyState(wparam) & 0x8000) != 0;
22 } 22 }
23 23
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 result.wheelTicksX = wheel_delta; 453 result.wheelTicksX = wheel_delta;
454 } else { 454 } else {
455 result.deltaY = scroll_delta; 455 result.deltaY = scroll_delta;
456 result.wheelTicksY = wheel_delta; 456 result.wheelTicksY = wheel_delta;
457 } 457 }
458 458
459 return result; 459 return result;
460 } 460 }
461 461
462 } // namespace content 462 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698