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

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: Reverted chrome_switches.cc changes and TOT sync up 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
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
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Returns the non-client component (see ui/base/hit_test.h) containing 91 // Returns the non-client component (see ui/base/hit_test.h) containing
92 // |point|, in client coordinates. 92 // |point|, in client coordinates.
93 virtual int GetNonClientComponent(const gfx::Point& point) = 0; 93 virtual int GetNonClientComponent(const gfx::Point& point) = 0;
94 94
95 // Mouse and key event handlers. 95 // Mouse and key event handlers.
96 virtual bool OnKeyEvent(const KeyEvent& event) = 0; 96 virtual bool OnKeyEvent(const KeyEvent& event) = 0;
97 virtual bool OnMouseEvent(const MouseEvent& event) = 0; 97 virtual bool OnMouseEvent(const MouseEvent& event) = 0;
98 virtual void OnMouseCaptureLost() = 0; 98 virtual void OnMouseCaptureLost() = 0;
99 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) = 0; 99 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) = 0;
100 virtual bool OnGestureEvent(const GestureEvent& event) = 0;
100 101
101 // Runs the specified native command. Returns true if the command is handled. 102 // Runs the specified native command. Returns true if the command is handled.
102 virtual bool ExecuteCommand(int command_id) = 0; 103 virtual bool ExecuteCommand(int command_id) = 0;
103 104
104 // Returns the input method of the widget this delegate is associated with. 105 // 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 106 // Note that this does not use the top level widget, so may return NULL
106 // if the widget doesn't have input method. 107 // if the widget doesn't have input method.
107 virtual InputMethod* GetInputMethodDirect() = 0; 108 virtual InputMethod* GetInputMethodDirect() = 0;
108 109
109 // 110 //
110 virtual Widget* AsWidget() = 0; 111 virtual Widget* AsWidget() = 0;
111 virtual const Widget* AsWidget() const = 0; 112 virtual const Widget* AsWidget() const = 0;
112 }; 113 };
113 114
114 } // namespace internal 115 } // namespace internal
115 } // namespace views 116 } // namespace views
116 117
117 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 118 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« views/views.gyp ('K') | « views/views.gyp ('k') | views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698