| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // This mechanism is not a drop-in replacement for IPC: messages sent this way | 312 // This mechanism is not a drop-in replacement for IPC: messages sent this way |
| 313 // will not be automatically available to BrowserMessageFilter, for example. | 313 // will not be automatically available to BrowserMessageFilter, for example. |
| 314 // FIFO ordering is preserved between messages enqueued with the same | 314 // FIFO ordering is preserved between messages enqueued with the same |
| 315 // |policy|, the ordering between messages enqueued for different policies is | 315 // |policy|, the ordering between messages enqueued for different policies is |
| 316 // undefined. | 316 // undefined. |
| 317 // | 317 // |
| 318 // |msg| message to send, ownership of |msg| is transferred. | 318 // |msg| message to send, ownership of |msg| is transferred. |
| 319 // |policy| see the comment on MessageDeliveryPolicy. | 319 // |policy| see the comment on MessageDeliveryPolicy. |
| 320 void QueueMessage(IPC::Message* msg, MessageDeliveryPolicy policy); | 320 void QueueMessage(IPC::Message* msg, MessageDeliveryPolicy policy); |
| 321 | 321 |
| 322 // Check whether IME thread is being used or not. |
| 323 bool IsUsingImeThread(); |
| 324 |
| 322 // Handle start and finish of IME event guard. | 325 // Handle start and finish of IME event guard. |
| 323 void OnImeEventGuardStart(ImeEventGuard* guard); | 326 void OnImeEventGuardStart(ImeEventGuard* guard); |
| 324 void OnImeEventGuardFinish(ImeEventGuard* guard); | 327 void OnImeEventGuardFinish(ImeEventGuard* guard); |
| 325 | 328 |
| 326 // Returns whether we currently should handle an IME event. | 329 // Returns whether we currently should handle an IME event. |
| 327 bool ShouldHandleImeEvent(); | 330 bool ShouldHandleImeEvent(); |
| 328 | 331 |
| 329 void SetPopupOriginAdjustmentsForEmulation( | 332 void SetPopupOriginAdjustmentsForEmulation( |
| 330 RenderWidgetScreenMetricsEmulator* emulator); | 333 RenderWidgetScreenMetricsEmulator* emulator); |
| 331 | 334 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 void OnShowImeIfNeeded(); | 457 void OnShowImeIfNeeded(); |
| 455 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); | 458 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); |
| 456 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | 459 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); |
| 457 | 460 |
| 458 #if defined(OS_ANDROID) | 461 #if defined(OS_ANDROID) |
| 459 // Called when we send IME event that expects an ACK. | 462 // Called when we send IME event that expects an ACK. |
| 460 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); | 463 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); |
| 461 | 464 |
| 462 // Called by the browser process for every required IME acknowledgement. | 465 // Called by the browser process for every required IME acknowledgement. |
| 463 void OnImeEventAck(); | 466 void OnImeEventAck(); |
| 467 |
| 468 // Called by the browser process to update text input state. |
| 469 void OnRequestTextInputStateUpdate(); |
| 464 #endif | 470 #endif |
| 465 | 471 |
| 466 // Notify the compositor about a change in viewport size. This should be | 472 // Notify the compositor about a change in viewport size. This should be |
| 467 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 473 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 468 // go through OnResize. | 474 // go through OnResize. |
| 469 void AutoResizeCompositor(); | 475 void AutoResizeCompositor(); |
| 470 | 476 |
| 471 virtual void SetDeviceScaleFactor(float device_scale_factor); | 477 virtual void SetDeviceScaleFactor(float device_scale_factor); |
| 472 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); | 478 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); |
| 473 virtual void ResetDeviceColorProfileForTesting(); | 479 virtual void ResetDeviceColorProfileForTesting(); |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 | 763 |
| 758 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 764 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
| 759 render_widget_scheduling_state_; | 765 render_widget_scheduling_state_; |
| 760 | 766 |
| 761 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 767 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 762 }; | 768 }; |
| 763 | 769 |
| 764 } // namespace content | 770 } // namespace content |
| 765 | 771 |
| 766 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 772 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |