OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_GTK_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
7 | 7 |
8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // RenderWidgetHost::ForwardEditCommandsForNextKeyEvent(). | 83 // RenderWidgetHost::ForwardEditCommandsForNextKeyEvent(). |
84 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); | 84 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); |
85 | 85 |
86 private: | 86 private: |
87 friend class RenderWidgetHostViewGtkWidget; | 87 friend class RenderWidgetHostViewGtkWidget; |
88 | 88 |
89 // Update the display cursor for the render view. | 89 // Update the display cursor for the render view. |
90 void ShowCurrentCursor(); | 90 void ShowCurrentCursor(); |
91 | 91 |
92 // The model object. | 92 // The model object. |
93 RenderWidgetHost* const host_; | 93 RenderWidgetHost* host_; |
94 | 94 |
95 // The native UI widget. | 95 // The native UI widget. |
96 OwnedWidgetGtk view_; | 96 OwnedWidgetGtk view_; |
97 | 97 |
98 // This is true when we are currently painting and thus should handle extra | 98 // This is true when we are currently painting and thus should handle extra |
99 // paint requests by expanding the invalid rect rather than actually | 99 // paint requests by expanding the invalid rect rather than actually |
100 // painting. | 100 // painting. |
101 bool about_to_validate_and_paint_; | 101 bool about_to_validate_and_paint_; |
102 | 102 |
103 // This is the rectangle which we'll paint. | 103 // This is the rectangle which we'll paint. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 // Helper class that lets us allocate plugin containers and move them. | 143 // Helper class that lets us allocate plugin containers and move them. |
144 GtkPluginContainerManager plugin_container_manager_; | 144 GtkPluginContainerManager plugin_container_manager_; |
145 | 145 |
146 // The size that we want the renderer to be. We keep this in a separate | 146 // The size that we want the renderer to be. We keep this in a separate |
147 // variable because resizing in GTK+ is async. | 147 // variable because resizing in GTK+ is async. |
148 gfx::Size requested_size_; | 148 gfx::Size requested_size_; |
149 }; | 149 }; |
150 | 150 |
151 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 151 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |