| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 | 7 |
| 8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); | 57 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect); |
| 58 virtual void DidPaintRect(const gfx::Rect& rect); | 58 virtual void DidPaintRect(const gfx::Rect& rect); |
| 59 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy); | 59 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy); |
| 60 virtual void RenderViewGone(); | 60 virtual void RenderViewGone(); |
| 61 virtual void Destroy(); | 61 virtual void Destroy(); |
| 62 virtual void SetTooltipText(const std::wstring& tooltip_text); | 62 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 63 virtual void SelectionChanged(const std::string& text); | 63 virtual void SelectionChanged(const std::string& text); |
| 64 virtual void PasteFromSelectionClipboard(); | 64 virtual void PasteFromSelectionClipboard(); |
| 65 virtual void ShowingContextMenu(bool showing); | 65 virtual void ShowingContextMenu(bool showing); |
| 66 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 66 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 67 virtual void SetBackground(const SkBitmap& background); |
| 67 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); | 68 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); |
| 68 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); | 69 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); |
| 69 | 70 |
| 70 gfx::NativeView native_view() const { return view_.get(); } | 71 gfx::NativeView native_view() const { return view_.get(); } |
| 71 | 72 |
| 72 void Paint(const gfx::Rect&); | 73 void Paint(const gfx::Rect&); |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 friend class RenderWidgetHostViewGtkWidget; | 76 friend class RenderWidgetHostViewGtkWidget; |
| 76 | 77 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool was_focused_before_grab_; | 124 bool was_focused_before_grab_; |
| 124 | 125 |
| 125 // A conveience wrapper object for GtkIMContext; | 126 // A conveience wrapper object for GtkIMContext; |
| 126 scoped_ptr<GtkIMContextWrapper> im_context_; | 127 scoped_ptr<GtkIMContextWrapper> im_context_; |
| 127 | 128 |
| 128 // Helper class that lets us allocate plugin containers and move them. | 129 // Helper class that lets us allocate plugin containers and move them. |
| 129 GtkPluginContainerManager plugin_container_manager_; | 130 GtkPluginContainerManager plugin_container_manager_; |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 133 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |