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

Side by Side Diff: ui/events/events_stub.cc

Issue 1410873012: events: Preserve pointer details in native MouseEvent constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac Created 5 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
« no previous file with comments | « ui/events/events_default.cc ('k') | ui/events/win/events_win.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/time/time.h" 6 #include "base/time/time.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ui/events/event_utils.h" 8 #include "ui/events/event_utils.h"
9 #include "ui/events/keycodes/dom/dom_code.h" 9 #include "ui/events/keycodes/dom/dom_code.h"
10 #include "ui/gfx/geometry/point.h" 10 #include "ui/gfx/geometry/point.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 NOTIMPLEMENTED(); 49 NOTIMPLEMENTED();
50 return 0; 50 return 0;
51 } 51 }
52 52
53 int GetChangedMouseButtonFlagsFromNative( 53 int GetChangedMouseButtonFlagsFromNative(
54 const base::NativeEvent& native_event) { 54 const base::NativeEvent& native_event) {
55 NOTIMPLEMENTED(); 55 NOTIMPLEMENTED();
56 return 0; 56 return 0;
57 } 57 }
58 58
59 PointerDetails GetMousePointerDetailsFromNative(
60 const base::NativeEvent& native_event) {
61 return PointerDetails(EventPointerType::POINTER_TYPE_MOUSE);
62 }
63
59 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { 64 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
60 NOTIMPLEMENTED(); 65 NOTIMPLEMENTED();
61 return gfx::Vector2d(); 66 return gfx::Vector2d();
62 } 67 }
63 68
64 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { 69 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
65 NOTIMPLEMENTED() << 70 NOTIMPLEMENTED() <<
66 "Don't know how to copy base::NativeEvent for this platform"; 71 "Don't know how to copy base::NativeEvent for this platform";
67 return NULL; 72 return NULL;
68 } 73 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return 0; 149 return 0;
145 } 150 }
146 151
147 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) { 152 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) {
148 NOTIMPLEMENTED(); 153 NOTIMPLEMENTED();
149 return 0; 154 return 0;
150 } 155 }
151 156
152 157
153 } // namespace ui 158 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/events_default.cc ('k') | ui/events/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698