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

Side by Side Diff: views/widget/native_widget_delegate.h

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added GestureSignature enum type Created 9 years, 1 month 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 | « views/views.gyp ('k') | views/widget/root_view.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 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/views_export.h" 9 #include "views/views_export.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Canvas; 12 class Canvas;
13 class Size; 13 class Size;
14 } 14 }
15 15
16 #if defined(TOUCH_UI) 16 #if defined(TOUCH_UI)
17 namespace ui { 17 namespace ui {
18 enum TouchStatus; 18 enum TouchStatus;
19 enum GestureStatus;
19 } 20 }
20 #endif 21 #endif
21 22
22 namespace views { 23 namespace views {
23 class InputMethod; 24 class InputMethod;
24 25
25 namespace internal { 26 namespace internal {
26 27
27 //////////////////////////////////////////////////////////////////////////////// 28 ////////////////////////////////////////////////////////////////////////////////
28 // NativeWidgetDelegate 29 // NativeWidgetDelegate
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 // Returns the non-client component (see ui/base/hit_test.h) containing 92 // Returns the non-client component (see ui/base/hit_test.h) containing
92 // |point|, in client coordinates. 93 // |point|, in client coordinates.
93 virtual int GetNonClientComponent(const gfx::Point& point) = 0; 94 virtual int GetNonClientComponent(const gfx::Point& point) = 0;
94 95
95 // Mouse and key event handlers. 96 // Mouse and key event handlers.
96 virtual bool OnKeyEvent(const KeyEvent& event) = 0; 97 virtual bool OnKeyEvent(const KeyEvent& event) = 0;
97 virtual bool OnMouseEvent(const MouseEvent& event) = 0; 98 virtual bool OnMouseEvent(const MouseEvent& event) = 0;
98 virtual void OnMouseCaptureLost() = 0; 99 virtual void OnMouseCaptureLost() = 0;
99 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) = 0; 100 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) = 0;
101 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) = 0;
100 102
101 // Runs the specified native command. Returns true if the command is handled. 103 // Runs the specified native command. Returns true if the command is handled.
102 virtual bool ExecuteCommand(int command_id) = 0; 104 virtual bool ExecuteCommand(int command_id) = 0;
103 105
104 // Returns the input method of the widget this delegate is associated with. 106 // Returns the input method of the widget this delegate is associated with.
105 // Note that this does not use the top level widget, so may return NULL 107 // Note that this does not use the top level widget, so may return NULL
106 // if the widget doesn't have input method. 108 // if the widget doesn't have input method.
107 virtual InputMethod* GetInputMethodDirect() = 0; 109 virtual InputMethod* GetInputMethodDirect() = 0;
108 110
109 // 111 //
110 virtual Widget* AsWidget() = 0; 112 virtual Widget* AsWidget() = 0;
111 virtual const Widget* AsWidget() const = 0; 113 virtual const Widget* AsWidget() const = 0;
112 }; 114 };
113 115
114 } // namespace internal 116 } // namespace internal
115 } // namespace views 117 } // namespace views
116 118
117 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 119 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/views.gyp ('k') | views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698