| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 251 |
| 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 GetWebScreenInfo(blink::WebScreenInfo* result) = 0; | 260 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) = 0; |
| 261 // Get the color profile corresponding to this render widget. | |
| 262 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0; | |
| 263 | 261 |
| 264 // Sends a compositor proto to the render widget. | 262 // Sends a compositor proto to the render widget. |
| 265 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; | 263 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; |
| 266 }; | 264 }; |
| 267 | 265 |
| 268 } // namespace content | 266 } // namespace content |
| 269 | 267 |
| 270 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 268 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |