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

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

Issue 10831240: Remove TouchEvent interface, and rename TouchEventImpl to TouchEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge-tot Created 8 years, 4 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_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 #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 "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 #include "ui/base/events.h" 9 #include "ui/base/events.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Canvas; 13 class Canvas;
14 class Path; 14 class Path;
15 class Point; 15 class Point;
16 class Rect; 16 class Rect;
17 class Size; 17 class Size;
18 } 18 }
19 19
20 namespace ui { 20 namespace ui {
21 class GestureEventImpl; 21 class GestureEventImpl;
22 class KeyEvent; 22 class KeyEvent;
23 class MouseEvent; 23 class MouseEvent;
24 class TouchEventImpl; 24 class TouchEvent;
25 } 25 }
26 26
27 namespace aura { 27 namespace aura {
28 28
29 // Delegate interface for aura::Window. 29 // Delegate interface for aura::Window.
30 class AURA_EXPORT WindowDelegate { 30 class AURA_EXPORT WindowDelegate {
31 public: 31 public:
32 // Returns the window's minimum size, or size 0,0 if there is no limit. 32 // Returns the window's minimum size, or size 0,0 if there is no limit.
33 virtual gfx::Size GetMinimumSize() const = 0; 33 virtual gfx::Size GetMinimumSize() const = 0;
34 34
(...skipping 16 matching lines...) Expand all
51 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; 51 virtual int GetNonClientComponent(const gfx::Point& point) const = 0;
52 52
53 // Returns true if event handling should descend into |child|. |location| is 53 // Returns true if event handling should descend into |child|. |location| is
54 // in terms of the Window. 54 // in terms of the Window.
55 virtual bool ShouldDescendIntoChildForEventHandling( 55 virtual bool ShouldDescendIntoChildForEventHandling(
56 Window* child, 56 Window* child,
57 const gfx::Point& location) = 0; 57 const gfx::Point& location) = 0;
58 58
59 virtual bool OnMouseEvent(ui::MouseEvent* event) = 0; 59 virtual bool OnMouseEvent(ui::MouseEvent* event) = 0;
60 60
61 virtual ui::TouchStatus OnTouchEvent(ui::TouchEventImpl* event) = 0; 61 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) = 0;
62 62
63 virtual ui::GestureStatus OnGestureEvent(ui::GestureEventImpl* event) = 0; 63 virtual ui::GestureStatus OnGestureEvent(ui::GestureEventImpl* event) = 0;
64 64
65 // Returns true of the window can be focused. 65 // Returns true of the window can be focused.
66 virtual bool CanFocus() = 0; 66 virtual bool CanFocus() = 0;
67 67
68 // Invoked when mouse capture is lost on the window. 68 // Invoked when mouse capture is lost on the window.
69 virtual void OnCaptureLost() = 0; 69 virtual void OnCaptureLost() = 0;
70 70
71 // Asks the delegate to paint window contents into the supplied canvas. 71 // Asks the delegate to paint window contents into the supplied canvas.
(...skipping 28 matching lines...) Expand all
100 // above returns true. 100 // above returns true.
101 virtual void GetHitTestMask(gfx::Path* mask) const = 0; 101 virtual void GetHitTestMask(gfx::Path* mask) const = 0;
102 102
103 protected: 103 protected:
104 virtual ~WindowDelegate() {} 104 virtual ~WindowDelegate() {}
105 }; 105 };
106 106
107 } // namespace aura 107 } // namespace aura
108 108
109 #endif // UI_AURA_WINDOW_DELEGATE_H_ 109 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/test/test_window_delegate.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698