| 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // | 176 // |
| 177 // NOTE: |callback| is called synchronously if the backing store is available. | 177 // NOTE: |callback| is called synchronously if the backing store is available. |
| 178 // When accelerated compositing is active, |callback| may be called | 178 // When accelerated compositing is active, |callback| may be called |
| 179 // asynchronously. | 179 // asynchronously. |
| 180 virtual void CopyFromBackingStore(const gfx::Rect& src_rect, | 180 virtual void CopyFromBackingStore(const gfx::Rect& src_rect, |
| 181 const gfx::Size& accelerated_dst_size, | 181 const gfx::Size& accelerated_dst_size, |
| 182 const ReadbackRequestCallback& callback, | 182 const ReadbackRequestCallback& callback, |
| 183 const SkColorType color_type) = 0; | 183 const SkColorType color_type) = 0; |
| 184 // Ensures that the view does not drop the backing store even when hidden. | 184 // Ensures that the view does not drop the backing store even when hidden. |
| 185 virtual bool CanCopyFromBackingStore() = 0; | 185 virtual bool CanCopyFromBackingStore() = 0; |
| 186 virtual void LockBackingStore() = 0; | |
| 187 virtual void UnlockBackingStore() = 0; | |
| 188 | 186 |
| 189 // Forwards the given message to the renderer. These are called by | 187 // Forwards the given message to the renderer. These are called by |
| 190 // the view when it has received a message. | 188 // the view when it has received a message. |
| 191 virtual void ForwardMouseEvent( | 189 virtual void ForwardMouseEvent( |
| 192 const blink::WebMouseEvent& mouse_event) = 0; | 190 const blink::WebMouseEvent& mouse_event) = 0; |
| 193 virtual void ForwardWheelEvent( | 191 virtual void ForwardWheelEvent( |
| 194 const blink::WebMouseWheelEvent& wheel_event) = 0; | 192 const blink::WebMouseWheelEvent& wheel_event) = 0; |
| 195 virtual void ForwardKeyboardEvent( | 193 virtual void ForwardKeyboardEvent( |
| 196 const NativeWebKeyboardEvent& key_event) = 0; | 194 const NativeWebKeyboardEvent& key_event) = 0; |
| 197 virtual void ForwardGestureEvent( | 195 virtual void ForwardGestureEvent( |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // This allows the renderer to reset some state. | 292 // This allows the renderer to reset some state. |
| 295 virtual void DragSourceSystemDragEnded() {}; | 293 virtual void DragSourceSystemDragEnded() {}; |
| 296 | 294 |
| 297 // Filters drop data before it is passed to RenderWidgetHost. | 295 // Filters drop data before it is passed to RenderWidgetHost. |
| 298 virtual void FilterDropData(DropData* drop_data) {} | 296 virtual void FilterDropData(DropData* drop_data) {} |
| 299 }; | 297 }; |
| 300 | 298 |
| 301 } // namespace content | 299 } // namespace content |
| 302 | 300 |
| 303 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 301 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |