| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // RenderWidgetHostView implementation. | 49 // RenderWidgetHostView implementation. |
| 50 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 50 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
| 51 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 51 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
| 52 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 52 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| 53 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 53 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
| 54 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 54 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 55 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 55 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
| 56 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 56 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| 57 virtual bool HasFocus() const OVERRIDE; | 57 virtual bool HasFocus() const OVERRIDE; |
| 58 virtual bool HasSurface() const OVERRIDE; |
| 58 virtual void Show() OVERRIDE; | 59 virtual void Show() OVERRIDE; |
| 59 virtual void Hide() OVERRIDE; | 60 virtual void Hide() OVERRIDE; |
| 60 virtual bool IsShowing() OVERRIDE; | 61 virtual bool IsShowing() OVERRIDE; |
| 61 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 62 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
| 62 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; | 63 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; |
| 63 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; | 64 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; |
| 64 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 65 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| 65 | 66 |
| 66 // RenderWidgetHostViewPort implementation. | 67 // RenderWidgetHostViewPort implementation. |
| 67 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, | 68 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 gfx::PluginWindowHandle compositing_surface_; | 285 gfx::PluginWindowHandle compositing_surface_; |
| 285 | 286 |
| 286 // The event for the last mouse down we handled. We need this for context | 287 // The event for the last mouse down we handled. We need this for context |
| 287 // menus and drags. | 288 // menus and drags. |
| 288 GdkEventButton* last_mouse_down_; | 289 GdkEventButton* last_mouse_down_; |
| 289 | 290 |
| 290 ui::GtkSignalRegistrar signals_; | 291 ui::GtkSignalRegistrar signals_; |
| 291 }; | 292 }; |
| 292 | 293 |
| 293 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 294 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |