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

Side by Side Diff: views/events/event_aura.cc

Issue 7841012: Get chrome to link with USE_AURA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « views/events/event.h ('k') | views/views.gyp » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/events/event.h" 5 #include "views/events/event.h"
6 6
7 #include "aura/event.h" 7 #include "aura/event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace views { 10 namespace views {
11 11
12 namespace { 12 namespace {
13 13
14 int GetKeyStateFlags() { 14 int GetKeyStateFlags() {
15 NOTIMPLEMENTED(); 15 NOTIMPLEMENTED();
16 return 0; 16 return 0;
17 } 17 }
18 18
19 ui::EventType EventTypeFromNative(NativeEvent native_event) { 19 ui::EventType EventTypeFromNative(NativeEvent native_event) {
20 return native_event->type(); 20 return native_event->type();
21 } 21 }
22 22
23 int EventFlagsFromNative(NativeEvent native_event) { 23 int EventFlagsFromNative(NativeEvent native_event) {
24 return native_event->flags(); 24 return native_event->flags();
25 } 25 }
26 26
27 } 27 }
28 28
29 bool IsClientMouseEvent(const views::NativeEvent& native_event) {
30 return true;
31 }
32
33 bool IsNonClientMouseEvent(const views::NativeEvent& native_event) {
34 return false;
35 }
36
29 //////////////////////////////////////////////////////////////////////////////// 37 ////////////////////////////////////////////////////////////////////////////////
30 // Event, private: 38 // Event, private:
31 39
32 void Event::Init() { 40 void Event::Init() {
33 } 41 }
34 42
35 void Event::InitWithNativeEvent(NativeEvent native_event) { 43 void Event::InitWithNativeEvent(NativeEvent native_event) {
36 native_event_ = native_event; 44 native_event_ = native_event;
37 // TODO(beng): remove once we rid views of Gtk/Gdk. 45 // TODO(beng): remove once we rid views of Gtk/Gdk.
38 native_event_2_ = NULL; 46 native_event_2_ = NULL;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 122
115 MouseWheelEvent::MouseWheelEvent(NativeEvent2 native_event_2, 123 MouseWheelEvent::MouseWheelEvent(NativeEvent2 native_event_2,
116 FromNativeEvent2 from_native) 124 FromNativeEvent2 from_native)
117 : MouseEvent(native_event_2, from_native) { 125 : MouseEvent(native_event_2, from_native) {
118 // No one should ever call this on Windows. 126 // No one should ever call this on Windows.
119 // TODO(msw): remove once we rid views of Gtk/Gdk. 127 // TODO(msw): remove once we rid views of Gtk/Gdk.
120 NOTREACHED(); 128 NOTREACHED();
121 } 129 }
122 130
123 } // namespace views 131 } // namespace views
OLDNEW
« no previous file with comments | « views/events/event.h ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698