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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CONTENT_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 virtual void UnhandledWheelEvent( | 99 virtual void UnhandledWheelEvent( |
100 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 100 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
101 virtual void SetHasHorizontalScrollbar( | 101 virtual void SetHasHorizontalScrollbar( |
102 bool has_horizontal_scrollbar) OVERRIDE; | 102 bool has_horizontal_scrollbar) OVERRIDE; |
103 virtual void SetScrollOffsetPinning( | 103 virtual void SetScrollOffsetPinning( |
104 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 104 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
105 virtual void AcceleratedCompositingActivated(bool activated) OVERRIDE; | 105 virtual void AcceleratedCompositingActivated(bool activated) OVERRIDE; |
106 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 106 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; |
107 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; | 107 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; |
108 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; | 108 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; |
| 109 virtual bool LockMouse() OVERRIDE; |
| 110 virtual void UnlockMouse() OVERRIDE; |
109 | 111 |
110 // ui::AnimationDelegate implementation. | 112 // ui::AnimationDelegate implementation. |
111 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 113 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
112 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 114 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
113 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; | 115 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; |
114 | 116 |
115 gfx::NativeView native_view() const { return view_.get(); } | 117 gfx::NativeView native_view() const { return view_.get(); } |
116 | 118 |
117 // If the widget is aligned with an edge of the monitor its on and the user | 119 // If the widget is aligned with an edge of the monitor its on and the user |
118 // attempts to drag past that edge we track the number of times it has | 120 // attempts to drag past that edge we track the number of times it has |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 // menus and drags. | 269 // menus and drags. |
268 GdkEventButton* last_mouse_down_; | 270 GdkEventButton* last_mouse_down_; |
269 | 271 |
270 #if defined(OS_CHROMEOS) | 272 #if defined(OS_CHROMEOS) |
271 // Custimized tooltip window. | 273 // Custimized tooltip window. |
272 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; | 274 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; |
273 #endif // defined(OS_CHROMEOS) | 275 #endif // defined(OS_CHROMEOS) |
274 }; | 276 }; |
275 | 277 |
276 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 278 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |