OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 skia::PlatformCanvas* output, | 101 skia::PlatformCanvas* output, |
102 base::Callback<void(bool)> callback) OVERRIDE; | 102 base::Callback<void(bool)> callback) OVERRIDE; |
103 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 103 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
104 virtual void AcceleratedSurfaceBuffersSwapped( | 104 virtual void AcceleratedSurfaceBuffersSwapped( |
105 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 105 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
106 int gpu_host_id) OVERRIDE; | 106 int gpu_host_id) OVERRIDE; |
107 virtual void AcceleratedSurfacePostSubBuffer( | 107 virtual void AcceleratedSurfacePostSubBuffer( |
108 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 108 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
109 int gpu_host_id) OVERRIDE; | 109 int gpu_host_id) OVERRIDE; |
110 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 110 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 111 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
111 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; | 112 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE; |
112 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; | 113 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE; |
113 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, | 114 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, |
114 bool processed) OVERRIDE; | 115 bool processed) OVERRIDE; |
115 virtual void SetHasHorizontalScrollbar( | 116 virtual void SetHasHorizontalScrollbar( |
116 bool has_horizontal_scrollbar) OVERRIDE; | 117 bool has_horizontal_scrollbar) OVERRIDE; |
117 virtual void SetScrollOffsetPinning( | 118 virtual void SetScrollOffsetPinning( |
118 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 119 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
119 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 120 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; |
120 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; | 121 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 gfx::PluginWindowHandle compositing_surface_; | 284 gfx::PluginWindowHandle compositing_surface_; |
284 | 285 |
285 // The event for the last mouse down we handled. We need this for context | 286 // The event for the last mouse down we handled. We need this for context |
286 // menus and drags. | 287 // menus and drags. |
287 GdkEventButton* last_mouse_down_; | 288 GdkEventButton* last_mouse_down_; |
288 | 289 |
289 ui::GtkSignalRegistrar signals_; | 290 ui::GtkSignalRegistrar signals_; |
290 }; | 291 }; |
291 | 292 |
292 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 293 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
OLD | NEW |