| 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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // enforced; this case is currently used for accelerated plugins. | 174 // enforced; this case is currently used for accelerated plugins. |
| 175 virtual void AcceleratedSurfaceBuffersSwapped( | 175 virtual void AcceleratedSurfaceBuffersSwapped( |
| 176 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, | 176 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, |
| 177 int gpu_host_id) = 0; | 177 int gpu_host_id) = 0; |
| 178 // Similar to above, except |params.(x|y|width|height)| define the region | 178 // Similar to above, except |params.(x|y|width|height)| define the region |
| 179 // of the surface that changed. | 179 // of the surface that changed. |
| 180 virtual void AcceleratedSurfacePostSubBuffer( | 180 virtual void AcceleratedSurfacePostSubBuffer( |
| 181 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel, | 181 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel, |
| 182 int gpu_host_id) = 0; | 182 int gpu_host_id) = 0; |
| 183 | 183 |
| 184 // Request a periodic vsync signal notification from the View. The signal will |
| 185 // be delivered until explicitly disabled. |
| 186 virtual void EnableVSyncNotification(bool enable) {} |
| 187 |
| 184 // Release the accelerated surface temporarily. It will be recreated on the | 188 // Release the accelerated surface temporarily. It will be recreated on the |
| 185 // next swap buffers or post sub buffer. | 189 // next swap buffers or post sub buffer. |
| 186 virtual void AcceleratedSurfaceSuspend() = 0; | 190 virtual void AcceleratedSurfaceSuspend() = 0; |
| 187 | 191 |
| 188 // Return true if the view has an accelerated surface that contains the last | 192 // Return true if the view has an accelerated surface that contains the last |
| 189 // presented frame for the view. If |desired_size| is non-empty, true is | 193 // presented frame for the view. If |desired_size| is non-empty, true is |
| 190 // returned only if the accelerated surface size matches. | 194 // returned only if the accelerated surface size matches. |
| 191 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; | 195 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; |
| 192 | 196 |
| 193 #if defined(OS_MACOSX) | 197 #if defined(OS_MACOSX) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 virtual BrowserAccessibilityManager* | 290 virtual BrowserAccessibilityManager* |
| 287 GetBrowserAccessibilityManager() const = 0; | 291 GetBrowserAccessibilityManager() const = 0; |
| 288 virtual void OnAccessibilityNotifications( | 292 virtual void OnAccessibilityNotifications( |
| 289 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 293 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
| 290 } | 294 } |
| 291 }; | 295 }; |
| 292 | 296 |
| 293 } // namespace content | 297 } // namespace content |
| 294 | 298 |
| 295 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 299 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |