| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 void OnShowImeIfNeeded(); | 454 void OnShowImeIfNeeded(); |
| 455 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); | 455 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); |
| 456 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | 456 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); |
| 457 | 457 |
| 458 #if defined(OS_ANDROID) | 458 #if defined(OS_ANDROID) |
| 459 // Called when we send IME event that expects an ACK. | 459 // Called when we send IME event that expects an ACK. |
| 460 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); | 460 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); |
| 461 | 461 |
| 462 // Called by the browser process for every required IME acknowledgement. | 462 // Called by the browser process for every required IME acknowledgement. |
| 463 void OnImeEventAck(); | 463 void OnImeEventAck(); |
| 464 |
| 465 // Called by the browser process to update text input state. |
| 466 void OnRequestTextInputStateUpdate(); |
| 464 #endif | 467 #endif |
| 465 | 468 |
| 466 // Notify the compositor about a change in viewport size. This should be | 469 // Notify the compositor about a change in viewport size. This should be |
| 467 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 470 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 468 // go through OnResize. | 471 // go through OnResize. |
| 469 void AutoResizeCompositor(); | 472 void AutoResizeCompositor(); |
| 470 | 473 |
| 471 virtual void SetDeviceScaleFactor(float device_scale_factor); | 474 virtual void SetDeviceScaleFactor(float device_scale_factor); |
| 472 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); | 475 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); |
| 473 virtual void ResetDeviceColorProfileForTesting(); | 476 virtual void ResetDeviceColorProfileForTesting(); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 | 757 |
| 755 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 758 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
| 756 render_widget_scheduling_state_; | 759 render_widget_scheduling_state_; |
| 757 | 760 |
| 758 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 761 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 759 }; | 762 }; |
| 760 | 763 |
| 761 } // namespace content | 764 } // namespace content |
| 762 | 765 |
| 763 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 766 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |