| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 public: | 45 public: |
| 46 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); | 46 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); |
| 47 ~RenderWidgetHostViewGtk(); | 47 ~RenderWidgetHostViewGtk(); |
| 48 | 48 |
| 49 // Initialize this object for use as a drawing area. | 49 // Initialize this object for use as a drawing area. |
| 50 void InitAsChild(); | 50 void InitAsChild(); |
| 51 | 51 |
| 52 // RenderWidgetHostView implementation. | 52 // RenderWidgetHostView implementation. |
| 53 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 53 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 54 const gfx::Rect& pos); | 54 const gfx::Rect& pos); |
| 55 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view); |
| 55 virtual RenderWidgetHost* GetRenderWidgetHost() const { return host_; } | 56 virtual RenderWidgetHost* GetRenderWidgetHost() const { return host_; } |
| 56 virtual void DidBecomeSelected(); | 57 virtual void DidBecomeSelected(); |
| 57 virtual void WasHidden(); | 58 virtual void WasHidden(); |
| 58 virtual void SetSize(const gfx::Size& size); | 59 virtual void SetSize(const gfx::Size& size); |
| 59 virtual gfx::NativeView GetNativeView(); | 60 virtual gfx::NativeView GetNativeView(); |
| 60 virtual void MovePluginWindows( | 61 virtual void MovePluginWindows( |
| 61 const std::vector<webkit_glue::WebPluginGeometry>& moves); | 62 const std::vector<webkit_glue::WebPluginGeometry>& moves); |
| 62 virtual void Focus(); | 63 virtual void Focus(); |
| 63 virtual void Blur(); | 64 virtual void Blur(); |
| 64 virtual bool HasFocus(); | 65 virtual bool HasFocus(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // properly. | 118 // properly. |
| 118 bool NeedsInputGrab(); | 119 bool NeedsInputGrab(); |
| 119 | 120 |
| 120 // Returns whether this render view is a popup (<select> dropdown or | 121 // Returns whether this render view is a popup (<select> dropdown or |
| 121 // autocomplete window). | 122 // autocomplete window). |
| 122 bool IsPopup(); | 123 bool IsPopup(); |
| 123 | 124 |
| 124 // Update the display cursor for the render view. | 125 // Update the display cursor for the render view. |
| 125 void ShowCurrentCursor(); | 126 void ShowCurrentCursor(); |
| 126 | 127 |
| 128 // Helper method for InitAsPopup() and InitAsFullscreen(). |
| 129 void DoInitAsPopup( |
| 130 RenderWidgetHostView* parent_host_view, |
| 131 GtkWindowType window_type, |
| 132 const gfx::Rect& pos, // Ignored if is_fullscreen is true. |
| 133 bool is_fullscreen); |
| 134 |
| 127 // The model object. | 135 // The model object. |
| 128 RenderWidgetHost* host_; | 136 RenderWidgetHost* host_; |
| 129 | 137 |
| 130 // The native UI widget. | 138 // The native UI widget. |
| 131 OwnedWidgetGtk view_; | 139 OwnedWidgetGtk view_; |
| 132 | 140 |
| 133 // Cached value of --enable-gpu-rendering for out-of-process painting. | 141 // Cached value of --enable-gpu-rendering for out-of-process painting. |
| 134 bool enable_gpu_rendering_; | 142 bool enable_gpu_rendering_; |
| 135 | 143 |
| 136 // Non-NULL when we're doing out-of-process painting. | 144 // Non-NULL when we're doing out-of-process painting. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // indicate the top edge, positive the bottom. | 217 // indicate the top edge, positive the bottom. |
| 210 int dragged_at_vertical_edge_; | 218 int dragged_at_vertical_edge_; |
| 211 | 219 |
| 212 #if defined(OS_CHROMEOS) | 220 #if defined(OS_CHROMEOS) |
| 213 // Custimized tooltip window. | 221 // Custimized tooltip window. |
| 214 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; | 222 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; |
| 215 #endif // defined(OS_CHROMEOS) | 223 #endif // defined(OS_CHROMEOS) |
| 216 }; | 224 }; |
| 217 | 225 |
| 218 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 226 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |