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

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

Issue 342633003: [Android] Select text when stylus first button is pressed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/motion_event_web.h" 5 #include "content/browser/renderer_host/input/motion_event_web.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/common/input/web_touch_event_traits.h" 8 #include "content/common/input/web_touch_event_traits.h"
9 9
10 using blink::WebInputEvent; 10 using blink::WebInputEvent;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 NOTIMPLEMENTED(); 136 NOTIMPLEMENTED();
137 return 0.f; 137 return 0.f;
138 } 138 }
139 139
140 float MotionEventWeb::GetHistoricalY(size_t pointer_index, 140 float MotionEventWeb::GetHistoricalY(size_t pointer_index,
141 size_t historical_index) const { 141 size_t historical_index) const {
142 NOTIMPLEMENTED(); 142 NOTIMPLEMENTED();
143 return 0.f; 143 return 0.f;
144 } 144 }
145 145
146 int MotionEventWeb::GetSource() const {
147 NOTIMPLEMENTED();
148 return 0;
149 }
150
151 int MotionEventWeb::GetButtonState() const {
152 NOTIMPLEMENTED();
153 return 0;
154 }
155
146 scoped_ptr<ui::MotionEvent> MotionEventWeb::Clone() const { 156 scoped_ptr<ui::MotionEvent> MotionEventWeb::Clone() const {
147 return scoped_ptr<MotionEvent>(new MotionEventWeb(event_)); 157 return scoped_ptr<MotionEvent>(new MotionEventWeb(event_));
148 } 158 }
149 159
150 scoped_ptr<ui::MotionEvent> MotionEventWeb::Cancel() const { 160 scoped_ptr<ui::MotionEvent> MotionEventWeb::Cancel() const {
151 WebTouchEvent cancel_event(event_); 161 WebTouchEvent cancel_event(event_);
152 WebTouchEventTraits::ResetTypeAndTouchStates( 162 WebTouchEventTraits::ResetTypeAndTouchStates(
153 blink::WebInputEvent::TouchCancel, 163 blink::WebInputEvent::TouchCancel,
154 // TODO(rbyers): Shouldn't we use a fresh timestamp? 164 // TODO(rbyers): Shouldn't we use a fresh timestamp?
155 event_.timeStampSeconds, 165 event_.timeStampSeconds,
156 &cancel_event); 166 &cancel_event);
157 return scoped_ptr<MotionEvent>(new MotionEventWeb(cancel_event)); 167 return scoped_ptr<MotionEvent>(new MotionEventWeb(cancel_event));
158 } 168 }
159 169
160 } // namespace content 170 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698