| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} | 83 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} |
| 84 virtual void SetTooltipText(const std::wstring& tooltip_text); | 84 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 85 virtual void SelectionChanged(const std::string& text); | 85 virtual void SelectionChanged(const std::string& text); |
| 86 virtual void ShowingContextMenu(bool showing); | 86 virtual void ShowingContextMenu(bool showing); |
| 87 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 87 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 88 virtual void SetBackground(const SkBitmap& background); | 88 virtual void SetBackground(const SkBitmap& background); |
| 89 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); | 89 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); |
| 90 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); | 90 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); |
| 91 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); | 91 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); |
| 92 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 92 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
| 93 |
| 93 virtual void AcceleratedCompositingActivated(bool activated); | 94 virtual void AcceleratedCompositingActivated(bool activated); |
| 95 virtual gfx::PluginWindowHandle AcquireCompositingSurface(); |
| 96 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface); |
| 94 | 97 |
| 95 // ui::AnimationDelegate implementation. | 98 // ui::AnimationDelegate implementation. |
| 96 virtual void AnimationEnded(const ui::Animation* animation); | 99 virtual void AnimationEnded(const ui::Animation* animation); |
| 97 virtual void AnimationProgressed(const ui::Animation* animation); | 100 virtual void AnimationProgressed(const ui::Animation* animation); |
| 98 virtual void AnimationCanceled(const ui::Animation* animation); | 101 virtual void AnimationCanceled(const ui::Animation* animation); |
| 99 | 102 |
| 100 gfx::NativeView native_view() const { return view_.get(); } | 103 gfx::NativeView native_view() const { return view_.get(); } |
| 101 | 104 |
| 102 // If the widget is aligned with an edge of the monitor its on and the user | 105 // If the widget is aligned with an edge of the monitor its on and the user |
| 103 // attempts to drag past that edge we track the number of times it has | 106 // attempts to drag past that edge we track the number of times it has |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // indicate the top edge, positive the bottom. | 227 // indicate the top edge, positive the bottom. |
| 225 int dragged_at_vertical_edge_; | 228 int dragged_at_vertical_edge_; |
| 226 | 229 |
| 227 #if defined(OS_CHROMEOS) | 230 #if defined(OS_CHROMEOS) |
| 228 // Custimized tooltip window. | 231 // Custimized tooltip window. |
| 229 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; | 232 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; |
| 230 #endif // defined(OS_CHROMEOS) | 233 #endif // defined(OS_CHROMEOS) |
| 231 }; | 234 }; |
| 232 | 235 |
| 233 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 236 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |