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_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> |
11 #include <vector> | 11 #include <vector> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 16 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
17 #include "chrome/common/owned_widget_gtk.h" | 17 #include "chrome/common/owned_widget_gtk.h" |
18 #include "gfx/native_widget_types.h" | 18 #include "gfx/native_widget_types.h" |
19 #include "webkit/glue/plugins/gtk_plugin_container_manager.h" | 19 #include "webkit/glue/plugins/gtk_plugin_container_manager.h" |
20 #include "webkit/glue/webcursor.h" | 20 #include "webkit/glue/webcursor.h" |
21 | 21 |
22 class RenderWidgetHost; | 22 class RenderWidgetHost; |
23 class GpuViewHost; | 23 class GpuViewHost; |
24 class GtkIMContextWrapper; | 24 class GtkIMContextWrapper; |
25 class GtkKeyBindingsHandler; | 25 class GtkKeyBindingsHandler; |
26 class MenuGtk; | 26 class MenuGtk; |
27 struct NativeWebKeyboardEvent; | 27 struct NativeWebKeyboardEvent; |
28 | 28 |
| 29 #if defined(OS_CHROMEOS) |
| 30 namespace views { |
| 31 class TooltipWindowGtk; |
| 32 } |
| 33 #endif // defined(OS_CHROMEOS) |
| 34 |
29 typedef struct _GtkClipboard GtkClipboard; | 35 typedef struct _GtkClipboard GtkClipboard; |
30 typedef struct _GtkSelectionData GtkSelectionData; | 36 typedef struct _GtkSelectionData GtkSelectionData; |
31 | 37 |
32 // ----------------------------------------------------------------------------- | 38 // ----------------------------------------------------------------------------- |
33 // See comments in render_widget_host_view.h about this class and its members. | 39 // See comments in render_widget_host_view.h about this class and its members. |
34 // ----------------------------------------------------------------------------- | 40 // ----------------------------------------------------------------------------- |
35 class RenderWidgetHostViewGtk : public RenderWidgetHostView { | 41 class RenderWidgetHostViewGtk : public RenderWidgetHostView { |
36 public: | 42 public: |
37 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); | 43 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); |
38 ~RenderWidgetHostViewGtk(); | 44 ~RenderWidgetHostViewGtk(); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // A convenience object for handling editor key bindings defined in gtk | 178 // A convenience object for handling editor key bindings defined in gtk |
173 // keyboard theme. | 179 // keyboard theme. |
174 scoped_ptr<GtkKeyBindingsHandler> key_bindings_handler_; | 180 scoped_ptr<GtkKeyBindingsHandler> key_bindings_handler_; |
175 | 181 |
176 // Helper class that lets us allocate plugin containers and move them. | 182 // Helper class that lets us allocate plugin containers and move them. |
177 GtkPluginContainerManager plugin_container_manager_; | 183 GtkPluginContainerManager plugin_container_manager_; |
178 | 184 |
179 // The size that we want the renderer to be. We keep this in a separate | 185 // The size that we want the renderer to be. We keep this in a separate |
180 // variable because resizing in GTK+ is async. | 186 // variable because resizing in GTK+ is async. |
181 gfx::Size requested_size_; | 187 gfx::Size requested_size_; |
| 188 |
| 189 #if defined(OS_CHROMEOS) |
| 190 // Custimized tooltip window. |
| 191 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; |
| 192 #endif // defined(OS_CHROMEOS) |
182 }; | 193 }; |
183 | 194 |
184 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 195 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |