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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_views.h

Issue 6347002: touch: Return an enum from OnTouchEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO, look for TOUCH_STATUS_START. Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual bool OnKeyPressed(const views::KeyEvent &e); 100 virtual bool OnKeyPressed(const views::KeyEvent &e);
101 virtual bool OnKeyReleased(const views::KeyEvent &e); 101 virtual bool OnKeyReleased(const views::KeyEvent &e);
102 102
103 virtual void DidGainFocus(); 103 virtual void DidGainFocus();
104 virtual void WillLoseFocus(); 104 virtual void WillLoseFocus();
105 105
106 // Forwards a keyboard event to renderer. 106 // Forwards a keyboard event to renderer.
107 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); 107 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event);
108 108
109 // Views touch events, overridden from views::View. 109 // Views touch events, overridden from views::View.
110 virtual bool OnTouchEvent(const views::TouchEvent& e); 110 virtual View::TouchStatus OnTouchEvent(const views::TouchEvent& e);
111 111
112 private: 112 private:
113 friend class RenderWidgetHostViewViewsWidget; 113 friend class RenderWidgetHostViewViewsWidget;
114 114
115 // Returns whether the widget needs an input grab to work 115 // Returns whether the widget needs an input grab to work
116 // properly. 116 // properly.
117 bool NeedsInputGrab(); 117 bool NeedsInputGrab();
118 118
119 // Returns whether this render view is a popup (<select> dropdown or 119 // Returns whether this render view is a popup (<select> dropdown or
120 // autocomplete window). 120 // autocomplete window).
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 // The touch-event. Its touch-points are updated as necessary. A new 170 // The touch-event. Its touch-points are updated as necessary. A new
171 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is 171 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is
172 // removed from the list on an ET_TOUCH_RELEASED event. 172 // removed from the list on an ET_TOUCH_RELEASED event.
173 WebKit::WebTouchEvent touch_event_; 173 WebKit::WebTouchEvent touch_event_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); 175 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews);
176 }; 176 };
177 177
178 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ 178 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_views.cc » ('j') | views/view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698