OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |