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

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

Issue 195793005: Refactor CopyNativeEvent and add events_mac.mm to start implementing stubs Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase at r263560 Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/events/events.gyp ('k') | ui/events/ozone/events_ozone.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/gfx/point.h" 9 #include "ui/gfx/point.h"
10 #include "ui/gfx/vector2d.h" 10 #include "ui/gfx/vector2d.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const base::NativeEvent& native_event) { 55 const base::NativeEvent& native_event) {
56 NOTIMPLEMENTED(); 56 NOTIMPLEMENTED();
57 return 0; 57 return 0;
58 } 58 }
59 59
60 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { 60 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
61 NOTIMPLEMENTED(); 61 NOTIMPLEMENTED();
62 return gfx::Vector2d(); 62 return gfx::Vector2d();
63 } 63 }
64 64
65 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
66 NOTREACHED() << "Don't know how to copy base::NativeEvent for this platform";
67 return NULL;
68 }
69
70 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {}
71
65 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { 72 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
66 NOTIMPLEMENTED(); 73 NOTIMPLEMENTED();
67 } 74 }
68 75
69 int GetTouchId(const base::NativeEvent& native_event) { 76 int GetTouchId(const base::NativeEvent& native_event) {
70 NOTIMPLEMENTED(); 77 NOTIMPLEMENTED();
71 return 0; 78 return 0;
72 } 79 }
73 80
74 float GetTouchRadiusX(const base::NativeEvent& native_event) { 81 float GetTouchRadiusX(const base::NativeEvent& native_event) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 NOTIMPLEMENTED(); 143 NOTIMPLEMENTED();
137 return static_cast<KeyboardCode>(0); 144 return static_cast<KeyboardCode>(0);
138 } 145 }
139 146
140 const char* CodeFromNative(const base::NativeEvent& native_event) { 147 const char* CodeFromNative(const base::NativeEvent& native_event) {
141 NOTIMPLEMENTED(); 148 NOTIMPLEMENTED();
142 return ""; 149 return "";
143 } 150 }
144 151
145 } // namespace ui 152 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/events.gyp ('k') | ui/events/ozone/events_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698