| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 virtual void OnInputEvent(const blink::WebInputEvent&) = 0; | 252 virtual void OnInputEvent(const blink::WebInputEvent&) = 0; |
| 253 }; | 253 }; |
| 254 | 254 |
| 255 // Add/remove an input event observer. | 255 // Add/remove an input event observer. |
| 256 virtual void AddInputEventObserver(InputEventObserver* observer) = 0; | 256 virtual void AddInputEventObserver(InputEventObserver* observer) = 0; |
| 257 virtual void RemoveInputEventObserver(InputEventObserver* observer) = 0; | 257 virtual void RemoveInputEventObserver(InputEventObserver* observer) = 0; |
| 258 | 258 |
| 259 // Get the screen info corresponding to this render widget. | 259 // Get the screen info corresponding to this render widget. |
| 260 virtual void GetScreenInfo(ScreenInfo* result) = 0; | 260 virtual void GetScreenInfo(ScreenInfo* result) = 0; |
| 261 | 261 |
| 262 // Sends a compositor proto to the render widget. | |
| 263 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; | |
| 264 | |
| 265 // Drag-and-drop drop target messages that get sent to Blink. | 262 // Drag-and-drop drop target messages that get sent to Blink. |
| 266 virtual void DragTargetDragEnter( | 263 virtual void DragTargetDragEnter( |
| 267 const DropData& drop_data, | 264 const DropData& drop_data, |
| 268 const gfx::Point& client_pt, | 265 const gfx::Point& client_pt, |
| 269 const gfx::Point& screen_pt, | 266 const gfx::Point& screen_pt, |
| 270 blink::WebDragOperationsMask operations_allowed, | 267 blink::WebDragOperationsMask operations_allowed, |
| 271 int key_modifiers) {} | 268 int key_modifiers) {} |
| 272 virtual void DragTargetDragEnterWithMetaData( | 269 virtual void DragTargetDragEnterWithMetaData( |
| 273 const std::vector<DropData::Metadata>& metadata, | 270 const std::vector<DropData::Metadata>& metadata, |
| 274 const gfx::Point& client_pt, | 271 const gfx::Point& client_pt, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 296 // This allows the renderer to reset some state. | 293 // This allows the renderer to reset some state. |
| 297 virtual void DragSourceSystemDragEnded() {}; | 294 virtual void DragSourceSystemDragEnded() {}; |
| 298 | 295 |
| 299 // Filters drop data before it is passed to RenderWidgetHost. | 296 // Filters drop data before it is passed to RenderWidgetHost. |
| 300 virtual void FilterDropData(DropData* drop_data) {} | 297 virtual void FilterDropData(DropData* drop_data) {} |
| 301 }; | 298 }; |
| 302 | 299 |
| 303 } // namespace content | 300 } // namespace content |
| 304 | 301 |
| 305 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 302 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |