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

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

Issue 6286013: V2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/views/events/event.h ('k') | ui/views/events/event_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/views/events/event.h"
6
7 #include "ui/views/view.h"
8
9 namespace ui {
10
11 ////////////////////////////////////////////////////////////////////////////////
12 // Event, protected:
13
14 Event::Event(EventType type, int flags)
15 : type_(type),
16 flags_(flags) {
17 }
18
19 ////////////////////////////////////////////////////////////////////////////////
20 // LocatedEvent, protected:
21
22 LocatedEvent::LocatedEvent(EventType type,
23 const gfx::Point& location,
24 int flags)
25 : Event(type, flags),
26 location_(location) {
27 }
28
29 LocatedEvent::LocatedEvent(const LocatedEvent& other,
30 View* source,
31 View* target)
32 : Event(other.type(), other.flags()) {
33 location_ = other.location();
34 View::ConvertPointToView(source, target, &location_);
35 }
36
37 ////////////////////////////////////////////////////////////////////////////////
38 // MouseEvent, public:
39
40 MouseEvent::MouseEvent(const MouseEvent& other, View* source, View* target)
41 : LocatedEvent(other, source, target) {
42 }
43
44 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/events/event.h ('k') | ui/views/events/event_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698