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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 262 // Sends a compositor proto to the render widget. |
263 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; | 263 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; |
| 264 |
| 265 // If we are in the batch edit mode, bundle it and send them later at once. |
| 266 // Otherwise, just send the message. |
| 267 virtual void SendOrBatch(IPC::Message* message) = 0; |
| 268 |
264 }; | 269 }; |
265 | 270 |
266 } // namespace content | 271 } // namespace content |
267 | 272 |
268 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 273 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
OLD | NEW |