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

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

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/test/test_window_delegate.cc ('k') | ui/aura/window_delegate.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 #ifndef UI_AURA_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_WINDOW_DELEGATE_H_
6 #define UI_AURA_WINDOW_DELEGATE_H_ 6 #define UI_AURA_WINDOW_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 #include "ui/base/events.h" 10 #include "ui/base/events.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Returns true if event handling should descend into |child|. |location| is 55 // Returns true if event handling should descend into |child|. |location| is
56 // in terms of the Window. 56 // in terms of the Window.
57 virtual bool ShouldDescendIntoChildForEventHandling( 57 virtual bool ShouldDescendIntoChildForEventHandling(
58 Window* child, 58 Window* child,
59 const gfx::Point& location) = 0; 59 const gfx::Point& location) = 0;
60 60
61 virtual bool OnMouseEvent(ui::MouseEvent* event) = 0; 61 virtual bool OnMouseEvent(ui::MouseEvent* event) = 0;
62 62
63 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) = 0; 63 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) = 0;
64 64
65 virtual ui::GestureStatus OnGestureEvent(ui::GestureEvent* event) = 0; 65 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) = 0;
66 66
67 // Returns true of the window can be focused. 67 // Returns true of the window can be focused.
68 virtual bool CanFocus() = 0; 68 virtual bool CanFocus() = 0;
69 69
70 // Invoked when mouse capture is lost on the window. 70 // Invoked when mouse capture is lost on the window.
71 virtual void OnCaptureLost() = 0; 71 virtual void OnCaptureLost() = 0;
72 72
73 // Asks the delegate to paint window contents into the supplied canvas. 73 // Asks the delegate to paint window contents into the supplied canvas.
74 virtual void OnPaint(gfx::Canvas* canvas) = 0; 74 virtual void OnPaint(gfx::Canvas* canvas) = 0;
75 75
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 ui::ScrollEvent* event) OVERRIDE; 113 ui::ScrollEvent* event) OVERRIDE;
114 virtual ui::TouchStatus OnTouchEvent(ui::EventTarget* target, 114 virtual ui::TouchStatus OnTouchEvent(ui::EventTarget* target,
115 ui::TouchEvent* event) OVERRIDE; 115 ui::TouchEvent* event) OVERRIDE;
116 virtual ui::EventResult OnGestureEvent(ui::EventTarget* target, 116 virtual ui::EventResult OnGestureEvent(ui::EventTarget* target,
117 ui::GestureEvent* event) OVERRIDE; 117 ui::GestureEvent* event) OVERRIDE;
118 }; 118 };
119 119
120 } // namespace aura 120 } // namespace aura
121 121
122 #endif // UI_AURA_WINDOW_DELEGATE_H_ 122 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/test/test_window_delegate.cc ('k') | ui/aura/window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698