| 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "content/browser/renderer_host/render_widget_host_view.h" | 16 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 17 #include "content/common/content_export.h" |
| 17 #include "ui/base/animation/animation_delegate.h" | 18 #include "ui/base/animation/animation_delegate.h" |
| 18 #include "ui/base/animation/slide_animation.h" | 19 #include "ui/base/animation/slide_animation.h" |
| 19 #include "ui/base/gtk/gtk_signal.h" | 20 #include "ui/base/gtk/gtk_signal.h" |
| 20 #include "ui/base/gtk/owned_widget_gtk.h" | 21 #include "ui/base/gtk/owned_widget_gtk.h" |
| 21 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
| 22 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
| 23 #include "webkit/glue/webcursor.h" | 24 #include "webkit/glue/webcursor.h" |
| 24 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h" | 25 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h" |
| 25 | 26 |
| 26 class RenderWidgetHost; | 27 class RenderWidgetHost; |
| 27 class GtkIMContextWrapper; | 28 class GtkIMContextWrapper; |
| 28 struct NativeWebKeyboardEvent; | 29 struct NativeWebKeyboardEvent; |
| 29 | 30 |
| 30 #if defined(OS_CHROMEOS) | 31 #if defined(OS_CHROMEOS) |
| 31 namespace ui { | 32 namespace ui { |
| 32 class TooltipWindowGtk; | 33 class TooltipWindowGtk; |
| 33 } | 34 } |
| 34 #else | 35 #else |
| 35 class GtkKeyBindingsHandler; | 36 class GtkKeyBindingsHandler; |
| 36 #endif // defined(OS_CHROMEOS) | 37 #endif // defined(OS_CHROMEOS) |
| 37 | 38 |
| 38 typedef struct _GtkClipboard GtkClipboard; | 39 typedef struct _GtkClipboard GtkClipboard; |
| 39 typedef struct _GtkSelectionData GtkSelectionData; | 40 typedef struct _GtkSelectionData GtkSelectionData; |
| 40 | 41 |
| 41 // ----------------------------------------------------------------------------- | 42 // ----------------------------------------------------------------------------- |
| 42 // See comments in render_widget_host_view.h about this class and its members. | 43 // See comments in render_widget_host_view.h about this class and its members. |
| 43 // ----------------------------------------------------------------------------- | 44 // ----------------------------------------------------------------------------- |
| 44 class RenderWidgetHostViewGtk : public RenderWidgetHostView, | 45 class CONTENT_EXPORT RenderWidgetHostViewGtk : public RenderWidgetHostView, |
| 45 public ui::AnimationDelegate { | 46 public ui::AnimationDelegate { |
| 46 public: | 47 public: |
| 47 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); | 48 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); |
| 48 virtual ~RenderWidgetHostViewGtk(); | 49 virtual ~RenderWidgetHostViewGtk(); |
| 49 | 50 |
| 50 // Initialize this object for use as a drawing area. | 51 // Initialize this object for use as a drawing area. |
| 51 void InitAsChild(); | 52 void InitAsChild(); |
| 52 | 53 |
| 53 // RenderWidgetHostView implementation. | 54 // RenderWidgetHostView implementation. |
| 54 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 55 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 55 const gfx::Rect& pos) OVERRIDE; | 56 const gfx::Rect& pos) OVERRIDE; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // menus and drags. | 270 // menus and drags. |
| 270 GdkEventButton* last_mouse_down_; | 271 GdkEventButton* last_mouse_down_; |
| 271 | 272 |
| 272 #if defined(OS_CHROMEOS) | 273 #if defined(OS_CHROMEOS) |
| 273 // Custimized tooltip window. | 274 // Custimized tooltip window. |
| 274 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; | 275 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; |
| 275 #endif // defined(OS_CHROMEOS) | 276 #endif // defined(OS_CHROMEOS) |
| 276 }; | 277 }; |
| 277 | 278 |
| 278 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 279 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |