| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 | 455 |
| 456 #if defined(OS_ANDROID) | 456 #if defined(OS_ANDROID) |
| 457 // Whenever an IME event that needs an acknowledgement is sent to the browser, | 457 // Whenever an IME event that needs an acknowledgement is sent to the browser, |
| 458 // the number of outstanding IME events that needs acknowledgement should be | 458 // the number of outstanding IME events that needs acknowledgement should be |
| 459 // incremented. All IME events will be dropped until we receive an ack from | 459 // incremented. All IME events will be dropped until we receive an ack from |
| 460 // the browser. | 460 // the browser. |
| 461 void IncrementOutstandingImeEventAcks(); | 461 void IncrementOutstandingImeEventAcks(); |
| 462 | 462 |
| 463 // Called by the browser process for every required IME acknowledgement. | 463 // Called by the browser process for every required IME acknowledgement. |
| 464 void OnImeEventAck(); | 464 void OnImeEventAck(); |
| 465 |
| 466 void RequestTextInputStateUpdate(); |
| 465 #endif | 467 #endif |
| 466 | 468 |
| 467 // 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 |
| 468 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 470 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 469 // go through OnResize. | 471 // go through OnResize. |
| 470 void AutoResizeCompositor(); | 472 void AutoResizeCompositor(); |
| 471 | 473 |
| 472 virtual void SetDeviceScaleFactor(float device_scale_factor); | 474 virtual void SetDeviceScaleFactor(float device_scale_factor); |
| 473 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); | 475 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); |
| 474 virtual void ResetDeviceColorProfileForTesting(); | 476 virtual void ResetDeviceColorProfileForTesting(); |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 ui::MenuSourceType context_menu_source_type_; | 819 ui::MenuSourceType context_menu_source_type_; |
| 818 bool has_host_context_menu_location_; | 820 bool has_host_context_menu_location_; |
| 819 gfx::Point host_context_menu_location_; | 821 gfx::Point host_context_menu_location_; |
| 820 | 822 |
| 821 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 823 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 822 }; | 824 }; |
| 823 | 825 |
| 824 } // namespace content | 826 } // namespace content |
| 825 | 827 |
| 826 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 828 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |