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

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

Issue 10912063: events: Get rid of GestureStatus in favour of EventResult. (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::OnKeyEvent(ui::EventTarget* target,
10 ui::KeyEvent* event) { 10 ui::KeyEvent* event) {
(...skipping 10 matching lines...) Expand all
21 return ui::ER_UNHANDLED; 21 return ui::ER_UNHANDLED;
22 } 22 }
23 23
24 ui::TouchStatus WindowDelegate::OnTouchEvent(ui::EventTarget* target, 24 ui::TouchStatus WindowDelegate::OnTouchEvent(ui::EventTarget* target,
25 ui::TouchEvent* event) { 25 ui::TouchEvent* event) {
26 return ui::TOUCH_STATUS_UNKNOWN; 26 return ui::TOUCH_STATUS_UNKNOWN;
27 } 27 }
28 28
29 ui::EventResult WindowDelegate::OnGestureEvent(ui::EventTarget* target, 29 ui::EventResult WindowDelegate::OnGestureEvent(ui::EventTarget* target,
30 ui::GestureEvent* event) { 30 ui::GestureEvent* event) {
31 return OnGestureEvent(event) == ui::GESTURE_STATUS_CONSUMED ? 31 return OnGestureEvent(event);
32 ui::ER_CONSUMED : ui::ER_UNHANDLED;
33 } 32 }
34 33
35 } // namespace aura 34 } // 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