| 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 | 252 |
| 253 // Add/remove an input event observer. | 253 // Add/remove an input event observer. |
| 254 virtual void AddInputEventObserver(InputEventObserver* observer) = 0; | 254 virtual void AddInputEventObserver(InputEventObserver* observer) = 0; |
| 255 virtual void RemoveInputEventObserver(InputEventObserver* observer) = 0; | 255 virtual void RemoveInputEventObserver(InputEventObserver* observer) = 0; |
| 256 | 256 |
| 257 // Get the screen info corresponding to this render widget. | 257 // Get the screen info corresponding to this render widget. |
| 258 virtual void GetScreenInfo(ScreenInfo* result) = 0; | 258 virtual void GetScreenInfo(ScreenInfo* result) = 0; |
| 259 | 259 |
| 260 // Sends a compositor proto to the render widget. | 260 // Sends a compositor proto to the render widget. |
| 261 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; | 261 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; |
| 262 |
| 263 // Drag-and-drop drop target messages that get sent to Blink. |
| 264 virtual void DragTargetDragEnter( |
| 265 const DropData& drop_data, |
| 266 const gfx::Point& client_pt, |
| 267 const gfx::Point& screen_pt, |
| 268 blink::WebDragOperationsMask operations_allowed, |
| 269 int key_modifiers) {} |
| 270 virtual void DragTargetDragEnterWithMetaData( |
| 271 const std::vector<DropData::Metadata>& metadata, |
| 272 const gfx::Point& client_pt, |
| 273 const gfx::Point& screen_pt, |
| 274 blink::WebDragOperationsMask operations_allowed, |
| 275 int key_modifiers) {}; |
| 276 virtual void DragTargetDragOver( |
| 277 const gfx::Point& client_pt, |
| 278 const gfx::Point& screen_pt, |
| 279 blink::WebDragOperationsMask operations_allowed, |
| 280 int key_modifiers) {} |
| 281 virtual void DragTargetDragLeave() {} |
| 282 virtual void DragTargetDrop(const DropData& drop_data, |
| 283 const gfx::Point& client_pt, |
| 284 const gfx::Point& screen_pt, |
| 285 int key_modifiers) {} |
| 286 |
| 287 // Filters drop data before it is passed to RenderWidgetHost. |
| 288 virtual void FilterDropData(DropData* drop_data) {} |
| 262 }; | 289 }; |
| 263 | 290 |
| 264 } // namespace content | 291 } // namespace content |
| 265 | 292 |
| 266 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 293 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |