| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #else | 37 #else |
| 38 class GtkKeyBindingsHandler; | 38 class GtkKeyBindingsHandler; |
| 39 #endif // defined(OS_CHROMEOS) | 39 #endif // defined(OS_CHROMEOS) |
| 40 | 40 |
| 41 typedef struct _GtkClipboard GtkClipboard; | 41 typedef struct _GtkClipboard GtkClipboard; |
| 42 typedef struct _GtkSelectionData GtkSelectionData; | 42 typedef struct _GtkSelectionData GtkSelectionData; |
| 43 | 43 |
| 44 // ----------------------------------------------------------------------------- | 44 // ----------------------------------------------------------------------------- |
| 45 // See comments in render_widget_host_view.h about this class and its members. | 45 // See comments in render_widget_host_view.h about this class and its members. |
| 46 // ----------------------------------------------------------------------------- | 46 // ----------------------------------------------------------------------------- |
| 47 class RenderWidgetHostViewGtk : public RenderWidgetHostViewBase { | 47 class RenderWidgetHostViewGtk : public content::RenderWidgetHostViewBase { |
| 48 public: | 48 public: |
| 49 virtual ~RenderWidgetHostViewGtk(); | 49 virtual ~RenderWidgetHostViewGtk(); |
| 50 | 50 |
| 51 // RenderWidgetHostView implementation. | 51 // RenderWidgetHostView implementation. |
| 52 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 52 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
| 53 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 53 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
| 54 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 54 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| 55 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 55 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
| 56 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 56 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 57 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 57 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
| 58 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 58 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| 59 virtual bool HasFocus() const OVERRIDE; | 59 virtual bool HasFocus() const OVERRIDE; |
| 60 virtual void Show() OVERRIDE; | 60 virtual void Show() OVERRIDE; |
| 61 virtual void Hide() OVERRIDE; | 61 virtual void Hide() OVERRIDE; |
| 62 virtual bool IsShowing() OVERRIDE; | 62 virtual bool IsShowing() OVERRIDE; |
| 63 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 63 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
| 64 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; | 64 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; |
| 65 #if !defined(TOOLKIT_VIEWS) | 65 #if !defined(TOOLKIT_VIEWS) |
| 66 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; | 66 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; |
| 67 #endif // !defined(TOOLKIT_VIEWS) | 67 #endif // !defined(TOOLKIT_VIEWS) |
| 68 virtual void UnhandledWheelEvent( | 68 virtual void UnhandledWheelEvent( |
| 69 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 69 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
| 70 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 70 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| 71 | 71 |
| 72 // RenderWidgetHostViewBase implementation. | 72 // RenderWidgetHostViewPort implementation. |
| 73 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 73 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 74 const gfx::Rect& pos) OVERRIDE; | 74 const gfx::Rect& pos) OVERRIDE; |
| 75 virtual void InitAsFullscreen( | 75 virtual void InitAsFullscreen( |
| 76 RenderWidgetHostView* reference_host_view) OVERRIDE; | 76 RenderWidgetHostView* reference_host_view) OVERRIDE; |
| 77 virtual void DidBecomeSelected() OVERRIDE; | 77 virtual void DidBecomeSelected() OVERRIDE; |
| 78 virtual void WasHidden() OVERRIDE; | 78 virtual void WasHidden() OVERRIDE; |
| 79 virtual void MovePluginWindows( | 79 virtual void MovePluginWindows( |
| 80 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; | 80 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; |
| 81 virtual void Focus() OVERRIDE; | 81 virtual void Focus() OVERRIDE; |
| 82 virtual void Blur() OVERRIDE; | 82 virtual void Blur() OVERRIDE; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 #if defined(OS_CHROMEOS) | 289 #if defined(OS_CHROMEOS) |
| 290 // Custimized tooltip window. | 290 // Custimized tooltip window. |
| 291 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; | 291 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; |
| 292 #endif // defined(OS_CHROMEOS) | 292 #endif // defined(OS_CHROMEOS) |
| 293 | 293 |
| 294 ui::GtkSignalRegistrar signals_; | 294 ui::GtkSignalRegistrar signals_; |
| 295 }; | 295 }; |
| 296 | 296 |
| 297 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 297 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |