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/aura/window_delegate.cc

Issue 10908127: events: Move EventTarget into Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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/window_delegate.h ('k') | ui/aura/window_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/window_delegate.h" 5 #include "ui/aura/window_delegate.h"
6 6
7 namespace aura { 7 namespace aura {
8 8
9 ui::EventResult WindowDelegate::OnKeyEvent(ui::EventTarget* target, 9 ui::EventResult WindowDelegate::OnScrollEvent(ui::ScrollEvent* event) {
10 ui::KeyEvent* event) {
11 return OnKeyEvent(event) ? ui::ER_HANDLED : ui::ER_UNHANDLED;
12 }
13
14 ui::EventResult WindowDelegate::OnMouseEvent(ui::EventTarget* target,
15 ui::MouseEvent* event) {
16 return OnMouseEvent(event) ? ui::ER_HANDLED : ui::ER_UNHANDLED;
17 }
18
19 ui::EventResult WindowDelegate::OnScrollEvent(ui::EventTarget* target,
20 ui::ScrollEvent* event) {
21 return ui::ER_UNHANDLED; 10 return ui::ER_UNHANDLED;
22 } 11 }
23 12
24 ui::TouchStatus WindowDelegate::OnTouchEvent(ui::EventTarget* target,
25 ui::TouchEvent* event) {
26 return ui::TOUCH_STATUS_UNKNOWN;
27 }
28
29 ui::EventResult WindowDelegate::OnGestureEvent(ui::EventTarget* target,
30 ui::GestureEvent* event) {
31 return OnGestureEvent(event);
32 }
33
34 } // namespace aura 13 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_delegate.h ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698