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

Side by Side Diff: sky/engine/core/events/GestureEvent.cpp

Issue 872233002: Switch KeyboardEvents over to NewEventHandler (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename virtualKeyCode to key Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/editing/EditorKeyBindings.cpp ('k') | sky/engine/core/events/KeyboardEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "sky/engine/config.h" 5 #include "sky/engine/config.h"
6 #include "sky/engine/core/dom/Element.h" 6 #include "sky/engine/core/dom/Element.h"
7 #include "sky/engine/core/events/GestureEvent.h" 7 #include "sky/engine/core/events/GestureEvent.h"
8 #include "sky/engine/wtf/text/AtomicString.h" 8 #include "sky/engine/wtf/text/AtomicString.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } else if (event.type == WebInputEvent::GestureScrollUpdate 80 } else if (event.type == WebInputEvent::GestureScrollUpdate
81 || event.type == WebInputEvent::GestureScrollUpdateWithoutPropagatio n) { 81 || event.type == WebInputEvent::GestureScrollUpdateWithoutPropagatio n) {
82 m_dx = event.data.scrollUpdate.deltaX; 82 m_dx = event.data.scrollUpdate.deltaX;
83 m_dy = event.data.scrollUpdate.deltaY; 83 m_dy = event.data.scrollUpdate.deltaY;
84 m_velocityX = event.data.scrollUpdate.velocityX; 84 m_velocityX = event.data.scrollUpdate.velocityX;
85 m_velocityY = event.data.scrollUpdate.velocityY; 85 m_velocityY = event.data.scrollUpdate.velocityY;
86 } 86 }
87 } 87 }
88 88
89 GestureEvent::GestureEvent(const AtomicString& type, const GestureEventInit& ini tializer) 89 GestureEvent::GestureEvent(const AtomicString& type, const GestureEventInit& ini tializer)
90 : Event(type, true, true) 90 : Event(type, initializer)
91 , m_x(initializer.x) 91 , m_x(initializer.x)
92 , m_y(initializer.y) 92 , m_y(initializer.y)
93 , m_dx(initializer.dx) 93 , m_dx(initializer.dx)
94 , m_dy(initializer.dy) 94 , m_dy(initializer.dy)
95 , m_velocityX(initializer.velocityX) 95 , m_velocityX(initializer.velocityX)
96 , m_velocityY(initializer.velocityY) 96 , m_velocityY(initializer.velocityY)
97 { 97 {
98 } 98 }
99 99
100 } // namespace blink 100 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/editing/EditorKeyBindings.cpp ('k') | sky/engine/core/events/KeyboardEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698