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

Side by Side Diff: ui/views/events/event.cc

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 years 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/views/debug_utils.cc ('k') | ui/views/examples/button_example.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) 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 "ui/views/events/event.h" 5 #include "ui/views/events/event.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/keycodes/keyboard_code_conversion.h" 8 #include "ui/base/keycodes/keyboard_code_conversion.h"
9 #include "ui/views/view.h"
9 #include "ui/views/widget/root_view.h" 10 #include "ui/views/widget/root_view.h"
10 #include "views/view.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 //////////////////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////////////////
15 // Event, protected: 15 // Event, protected:
16 16
17 Event::Event(ui::EventType type, int flags) 17 Event::Event(ui::EventType type, int flags)
18 : type_(type), 18 : type_(type),
19 time_stamp_(base::Time::NowFromSystemTime()), 19 time_stamp_(base::Time::NowFromSystemTime()),
20 flags_(flags) { 20 flags_(flags) {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 #if defined(OS_WIN) 196 #if defined(OS_WIN)
197 // This value matches windows WHEEL_DELTA. 197 // This value matches windows WHEEL_DELTA.
198 // static 198 // static
199 const int MouseWheelEvent::kWheelDelta = 120; 199 const int MouseWheelEvent::kWheelDelta = 120;
200 #else 200 #else
201 // This value matches GTK+ wheel scroll amount. 201 // This value matches GTK+ wheel scroll amount.
202 const int MouseWheelEvent::kWheelDelta = 53; 202 const int MouseWheelEvent::kWheelDelta = 53;
203 #endif 203 #endif
204 } // namespace views 204 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/debug_utils.cc ('k') | ui/views/examples/button_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698