| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} | 79 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} |
| 80 virtual void SetTooltipText(const std::wstring& tooltip_text); | 80 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 81 virtual void SelectionChanged(const std::string& text); | 81 virtual void SelectionChanged(const std::string& text); |
| 82 virtual void ShowingContextMenu(bool showing); | 82 virtual void ShowingContextMenu(bool showing); |
| 83 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 83 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 84 virtual void SetBackground(const SkBitmap& background); | 84 virtual void SetBackground(const SkBitmap& background); |
| 85 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); | 85 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); |
| 86 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); | 86 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); |
| 87 virtual void SetVisuallyDeemphasized(bool deemphasized); | 87 virtual void SetVisuallyDeemphasized(bool deemphasized); |
| 88 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 88 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
| 89 virtual void AcceleratedCompositingActivated(bool activated); |
| 89 | 90 |
| 90 gfx::NativeView native_view() const { return view_.get(); } | 91 gfx::NativeView native_view() const { return view_.get(); } |
| 91 | 92 |
| 92 // If the widget is aligned with an edge of the monitor its on and the user | 93 // If the widget is aligned with an edge of the monitor its on and the user |
| 93 // attempts to drag past that edge we track the number of times it has | 94 // attempts to drag past that edge we track the number of times it has |
| 94 // occurred, so that we can force the widget to scroll when it otherwise | 95 // occurred, so that we can force the widget to scroll when it otherwise |
| 95 // would be unable to. | 96 // would be unable to. |
| 96 void ModifyEventForEdgeDragging(GtkWidget* widget, GdkEventMotion* event); | 97 void ModifyEventForEdgeDragging(GtkWidget* widget, GdkEventMotion* event); |
| 97 void Paint(const gfx::Rect&); | 98 void Paint(const gfx::Rect&); |
| 98 | 99 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // indicate the top edge, positive the bottom. | 210 // indicate the top edge, positive the bottom. |
| 210 int dragged_at_vertical_edge_; | 211 int dragged_at_vertical_edge_; |
| 211 | 212 |
| 212 #if defined(OS_CHROMEOS) | 213 #if defined(OS_CHROMEOS) |
| 213 // Custimized tooltip window. | 214 // Custimized tooltip window. |
| 214 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; | 215 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; |
| 215 #endif // defined(OS_CHROMEOS) | 216 #endif // defined(OS_CHROMEOS) |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 219 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |