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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // enforced; this case is currently used for accelerated plugins. | 217 // enforced; this case is currently used for accelerated plugins. |
218 virtual void AcceleratedSurfaceBuffersSwapped( | 218 virtual void AcceleratedSurfaceBuffersSwapped( |
219 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 219 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
220 int gpu_host_id) = 0; | 220 int gpu_host_id) = 0; |
221 // Similar to above, except |params.(x|y|width|height)| define the region | 221 // Similar to above, except |params.(x|y|width|height)| define the region |
222 // of the surface that changed. | 222 // of the surface that changed. |
223 virtual void AcceleratedSurfacePostSubBuffer( | 223 virtual void AcceleratedSurfacePostSubBuffer( |
224 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 224 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
225 int gpu_host_id) = 0; | 225 int gpu_host_id) = 0; |
226 | 226 |
| 227 // Release the accelerated surface temporarily. It will be recreated on the |
| 228 // next swap buffers or post sub buffer. |
| 229 virtual void AcceleratedSurfaceSuspend() = 0; |
| 230 |
227 #if defined(OS_MACOSX) | 231 #if defined(OS_MACOSX) |
228 // Tells the view whether or not to accept first responder status. If |flag| | 232 // Tells the view whether or not to accept first responder status. If |flag| |
229 // is true, the view does not accept first responder status and instead | 233 // is true, the view does not accept first responder status and instead |
230 // manually becomes first responder when it receives a mouse down event. If | 234 // manually becomes first responder when it receives a mouse down event. If |
231 // |flag| is false, the view participates in the key-view chain as normal. | 235 // |flag| is false, the view participates in the key-view chain as normal. |
232 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0; | 236 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0; |
233 | 237 |
234 // Retrieve the bounds of the view, in cocoa view coordinates. | 238 // Retrieve the bounds of the view, in cocoa view coordinates. |
235 // If the UI scale factor is 2, |GetViewBounds()| will return a size of e.g. | 239 // If the UI scale factor is 2, |GetViewBounds()| will return a size of e.g. |
236 // (400, 300) in pixels, while this method will return (200, 150). | 240 // (400, 300) in pixels, while this method will return (200, 150). |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 ui::Range selection_range_; | 377 ui::Range selection_range_; |
374 | 378 |
375 private: | 379 private: |
376 // Manager of the tree representation of the WebKit render tree. | 380 // Manager of the tree representation of the WebKit render tree. |
377 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 381 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
378 | 382 |
379 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 383 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
380 }; | 384 }; |
381 | 385 |
382 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 386 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |