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