OLD | NEW |
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 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 virtual views::View* GetOwnerViewOfTextInputClient() OVERRIDE; | 167 virtual views::View* GetOwnerViewOfTextInputClient() OVERRIDE; |
168 | 168 |
169 #if defined(TOUCH_UI) | 169 #if defined(TOUCH_UI) |
170 virtual void AcceleratedSurfaceSetIOSurface( | 170 virtual void AcceleratedSurfaceSetIOSurface( |
171 int32 width, int32 height, uint64 surface_id) OVERRIDE; | 171 int32 width, int32 height, uint64 surface_id) OVERRIDE; |
172 virtual void AcceleratedSurfaceBuffersSwapped(uint64 surface_id) OVERRIDE; | 172 virtual void AcceleratedSurfaceBuffersSwapped(uint64 surface_id) OVERRIDE; |
173 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE; | 173 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE; |
174 #endif | 174 #endif |
175 | 175 |
176 protected: | 176 protected: |
177 // Overridden from RenderWidgetHostView / views::View. | 177 // Overridden views::View. |
178 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 178 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 179 virtual void OnFocus() OVERRIDE; |
| 180 virtual void OnBlur() OVERRIDE; |
| 181 |
| 182 // Overridden from RenderWidgetHostView |
179 virtual void Focus() OVERRIDE; | 183 virtual void Focus() OVERRIDE; |
180 virtual void Blur() OVERRIDE; | 184 virtual void Blur() OVERRIDE; |
181 virtual void OnFocus() OVERRIDE; | |
182 virtual void OnBlur() OVERRIDE; | |
183 | 185 |
184 private: | 186 private: |
185 friend class RenderWidgetHostViewViewsWidget; | 187 friend class RenderWidgetHostViewViewsWidget; |
186 | 188 |
187 // Returns whether the widget needs an input grab to work | 189 // Returns whether the widget needs an input grab to work |
188 // properly. | 190 // properly. |
189 bool NeedsInputGrab(); | 191 bool NeedsInputGrab(); |
190 | 192 |
191 // Returns whether this render view is a popup (<select> dropdown or | 193 // Returns whether this render view is a popup (<select> dropdown or |
192 // autocomplete window). | 194 // autocomplete window). |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 272 |
271 #if defined(TOUCH_UI) | 273 #if defined(TOUCH_UI) |
272 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerTouch> > | 274 std::map<uint64, scoped_refptr<AcceleratedSurfaceContainerTouch> > |
273 accelerated_surface_containers_; | 275 accelerated_surface_containers_; |
274 #endif | 276 #endif |
275 | 277 |
276 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); | 278 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); |
277 }; | 279 }; |
278 | 280 |
279 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 281 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
OLD | NEW |