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

Side by Side Diff: ui/aura/event.cc

Issue 7983039: Add support for MouseEnter/MouseExit event types to be sent to aura::Windows. (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 | « ui/aura/event.h ('k') | ui/aura/root_window.h » ('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/aura/event.h" 5 #include "ui/aura/event.h"
6 6
7 #include "ui/aura/window.h" 7 #include "ui/aura/window.h"
8 8
9 namespace aura { 9 namespace aura {
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const gfx::Point& location, 42 const gfx::Point& location,
43 int flags) 43 int flags)
44 : Event(type, flags), 44 : Event(type, flags),
45 location_(location) { 45 location_(location) {
46 } 46 }
47 47
48 MouseEvent::MouseEvent(const MouseEvent& model, Window* source, Window* target) 48 MouseEvent::MouseEvent(const MouseEvent& model, Window* source, Window* target)
49 : LocatedEvent(model, source, target) { 49 : LocatedEvent(model, source, target) {
50 } 50 }
51 51
52 MouseEvent::MouseEvent(const MouseEvent& model,
53 Window* source,
54 Window* target,
55 ui::EventType type)
56 : LocatedEvent(model, source, target) {
57 set_type(type);
58 }
59
52 MouseEvent::MouseEvent(ui::EventType type, 60 MouseEvent::MouseEvent(ui::EventType type,
53 const gfx::Point& location, 61 const gfx::Point& location,
54 int flags) 62 int flags)
55 : LocatedEvent(type, location, flags) { 63 : LocatedEvent(type, location, flags) {
56 } 64 }
57 65
58 KeyEvent::KeyEvent(ui::EventType type, 66 KeyEvent::KeyEvent(ui::EventType type,
59 ui::KeyboardCode key_code, 67 ui::KeyboardCode key_code,
60 int flags) 68 int flags)
61 : Event(type, flags), 69 : Event(type, flags),
62 key_code_(key_code) { 70 key_code_(key_code) {
63 } 71 }
64 72
65 } // namespace aura 73 } // namespace aura
66 74
OLDNEW
« no previous file with comments | « ui/aura/event.h ('k') | ui/aura/root_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698