Chromium Code Reviews| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 ~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); |
|
oshima
2011/05/25 17:18:18
can you add OVERRIDE while you're at it?
| |
| 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(); |
| 61 virtual void WasHidden(); | 61 virtual void WasHidden(); |
| 62 virtual void SetSize(const gfx::Size& size); | 62 virtual void SetSize(const gfx::Size& size); |
| 63 virtual void SetBounds(const gfx::Rect& rect); | 63 virtual void SetBounds(const gfx::Rect& rect); |
| 64 virtual gfx::NativeView GetNativeView(); | 64 virtual gfx::NativeView GetNativeView(); |
| 65 virtual void MovePluginWindows( | 65 virtual void MovePluginWindows( |
| 66 const std::vector<webkit::npapi::WebPluginGeometry>& moves); | 66 const std::vector<webkit::npapi::WebPluginGeometry>& moves); |
| 67 virtual void Focus(); | 67 virtual void Focus(); |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 86 virtual void SetTooltipText(const std::wstring& tooltip_text); | 86 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 87 virtual void SelectionChanged(const std::string& text, | 87 virtual void SelectionChanged(const std::string& text, |
| 88 const ui::Range& range); | 88 const ui::Range& range); |
| 89 virtual void ShowingContextMenu(bool showing); | 89 virtual void ShowingContextMenu(bool showing); |
| 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 91 virtual void SetBackground(const SkBitmap& background); | 91 virtual void SetBackground(const SkBitmap& background); |
| 92 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); | 92 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); |
| 93 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); | 93 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); |
| 94 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); | 94 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); |
| 95 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 95 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
| 96 | 96 |
|
oshima
2011/05/25 17:18:18
We should remove this line as well, unless they're
| |
| 97 virtual void AcceleratedCompositingActivated(bool activated); | 97 virtual void AcceleratedCompositingActivated(bool activated); |
| 98 virtual gfx::PluginWindowHandle GetCompositingSurface(); | 98 virtual gfx::PluginWindowHandle GetCompositingSurface(); |
| 99 | 99 |
|
oshima
2011/05/25 17:18:18
ditto
| |
| 100 virtual void PpapiPluginFocusChanged(bool focused) OVERRIDE; | |
| 101 | |
| 100 // ui::AnimationDelegate implementation. | 102 // ui::AnimationDelegate implementation. |
| 101 virtual void AnimationEnded(const ui::Animation* animation); | 103 virtual void AnimationEnded(const ui::Animation* animation); |
| 102 virtual void AnimationProgressed(const ui::Animation* animation); | 104 virtual void AnimationProgressed(const ui::Animation* animation); |
| 103 virtual void AnimationCanceled(const ui::Animation* animation); | 105 virtual void AnimationCanceled(const ui::Animation* animation); |
| 104 | 106 |
| 105 gfx::NativeView native_view() const { return view_.get(); } | 107 gfx::NativeView native_view() const { return view_.get(); } |
| 106 | 108 |
| 107 // If the widget is aligned with an edge of the monitor its on and the user | 109 // If the widget is aligned with an edge of the monitor its on and the user |
| 108 // attempts to drag past that edge we track the number of times it has | 110 // attempts to drag past that edge we track the number of times it has |
| 109 // occurred, so that we can force the widget to scroll when it otherwise | 111 // occurred, so that we can force the widget to scroll when it otherwise |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 254 // menus and drags. | 256 // menus and drags. |
| 255 GdkEventButton* last_mouse_down_; | 257 GdkEventButton* last_mouse_down_; |
| 256 | 258 |
| 257 #if defined(OS_CHROMEOS) | 259 #if defined(OS_CHROMEOS) |
| 258 // Custimized tooltip window. | 260 // Custimized tooltip window. |
| 259 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; | 261 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; |
| 260 #endif // defined(OS_CHROMEOS) | 262 #endif // defined(OS_CHROMEOS) |
| 261 }; | 263 }; |
| 262 | 264 |
| 263 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 265 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |