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

Side by Side Diff: ui/events/ozone/events_ozone.cc

Issue 251493002: MacViews: Implement basic NSEvent -> ui::Event conversion for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: selfnit 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
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 "ui/events/event.h" 5 #include "ui/events/event.h"
6 #include "ui/events/event_constants.h" 6 #include "ui/events/event_constants.h"
7 #include "ui/events/event_utils.h" 7 #include "ui/events/event_utils.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 return event->code().c_str(); 58 return event->code().c_str();
59 } 59 }
60 60
61 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { 61 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
62 const ui::MouseWheelEvent* event = 62 const ui::MouseWheelEvent* event =
63 static_cast<const ui::MouseWheelEvent*>(native_event); 63 static_cast<const ui::MouseWheelEvent*>(native_event);
64 DCHECK(event->type() == ET_MOUSEWHEEL); 64 DCHECK(event->type() == ET_MOUSEWHEEL);
65 return event->offset(); 65 return event->offset();
66 } 66 }
67 67
68 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
69 return NULL;
70 }
71
72 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
73 }
74
68 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { 75 void ClearTouchIdIfReleased(const base::NativeEvent& xev) {
69 } 76 }
70 77
71 int GetTouchId(const base::NativeEvent& native_event) { 78 int GetTouchId(const base::NativeEvent& native_event) {
72 const ui::TouchEvent* event = 79 const ui::TouchEvent* event =
73 static_cast<const ui::TouchEvent*>(native_event); 80 static_cast<const ui::TouchEvent*>(native_event);
74 DCHECK(event->IsTouchEvent()); 81 DCHECK(event->IsTouchEvent());
75 return event->touch_id(); 82 return event->touch_id();
76 } 83 }
77 84
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 NOTIMPLEMENTED(); 146 NOTIMPLEMENTED();
140 return false; 147 return false;
141 } 148 }
142 149
143 int GetModifiersFromKeyState() { 150 int GetModifiersFromKeyState() {
144 NOTIMPLEMENTED(); 151 NOTIMPLEMENTED();
145 return 0; 152 return 0;
146 } 153 }
147 154
148 } // namespace ui 155 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698