| 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 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 29 matching lines...) Expand all Loading... |
| 40 typedef struct _GtkClipboard GtkClipboard; | 40 typedef struct _GtkClipboard GtkClipboard; |
| 41 typedef struct _GtkSelectionData GtkSelectionData; | 41 typedef struct _GtkSelectionData GtkSelectionData; |
| 42 | 42 |
| 43 // ----------------------------------------------------------------------------- | 43 // ----------------------------------------------------------------------------- |
| 44 // See comments in render_widget_host_view.h about this class and its members. | 44 // See comments in render_widget_host_view.h about this class and its members. |
| 45 // ----------------------------------------------------------------------------- | 45 // ----------------------------------------------------------------------------- |
| 46 class RenderWidgetHostViewGtk : public RenderWidgetHostView, | 46 class RenderWidgetHostViewGtk : public RenderWidgetHostView, |
| 47 public ui::AnimationDelegate { | 47 public ui::AnimationDelegate { |
| 48 public: | 48 public: |
| 49 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); | 49 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); |
| 50 ~RenderWidgetHostViewGtk(); | 50 virtual ~RenderWidgetHostViewGtk(); |
| 51 | 51 |
| 52 // Initialize this object for use as a drawing area. | 52 // Initialize this object for use as a drawing area. |
| 53 void InitAsChild(); | 53 void InitAsChild(); |
| 54 | 54 |
| 55 // RenderWidgetHostView implementation. | 55 // RenderWidgetHostView implementation. |
| 56 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 56 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 57 const gfx::Rect& pos); | 57 const gfx::Rect& pos); |
| 58 virtual void InitAsFullscreen(); | 58 virtual void InitAsFullscreen(); |
| 59 virtual RenderWidgetHost* GetRenderWidgetHost() const; | 59 virtual RenderWidgetHost* GetRenderWidgetHost() const; |
| 60 virtual void DidBecomeSelected(); | 60 virtual void DidBecomeSelected(); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // menus and drags. | 254 // menus and drags. |
| 255 GdkEventButton* last_mouse_down_; | 255 GdkEventButton* last_mouse_down_; |
| 256 | 256 |
| 257 #if defined(OS_CHROMEOS) | 257 #if defined(OS_CHROMEOS) |
| 258 // Custimized tooltip window. | 258 // Custimized tooltip window. |
| 259 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; | 259 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; |
| 260 #endif // defined(OS_CHROMEOS) | 260 #endif // defined(OS_CHROMEOS) |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 263 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |