| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ | 5 #ifndef BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ |
| 6 #define BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ | 6 #define BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Only one RenderWidget can be in initialized state for a tab. | 86 // Only one RenderWidget can be in initialized state for a tab. |
| 87 void OnRenderWidgetInitialized(const int tab_id, | 87 void OnRenderWidgetInitialized(const int tab_id, |
| 88 content::RenderWidgetHost* render_widget_host); | 88 content::RenderWidgetHost* render_widget_host); |
| 89 | 89 |
| 90 void OnRenderWidgetDeleted(const int tab_id, | 90 void OnRenderWidgetDeleted(const int tab_id, |
| 91 content::RenderWidgetHost* render_widget_host); | 91 content::RenderWidgetHost* render_widget_host); |
| 92 | 92 |
| 93 // Notifies the client to show/hide IME. | 93 // Notifies the client to show/hide IME. |
| 94 void SendShowImeRequest(const int tab_id, | 94 void SendShowImeRequest(const int tab_id, |
| 95 content::RenderWidgetHost* render_widget_host, | 95 content::RenderWidgetHost* render_widget_host, |
| 96 const ui::TextInputClient* client); | 96 ui::TextInputType type, |
| 97 const std::string& text, |
| 98 const std::string& placeholder); |
| 97 void SendHideImeRequest(const int tab_id, | 99 void SendHideImeRequest(const int tab_id, |
| 98 content::RenderWidgetHost* render_widget_host); | 100 content::RenderWidgetHost* render_widget_host); |
| 99 | 101 |
| 100 // Sends a CompositorMessage for |tab_id| to the client. | 102 // Sends a CompositorMessage for |tab_id| to the client. |
| 101 void SendCompositorMessage(const int tab_id, | 103 void SendCompositorMessage(const int tab_id, |
| 102 content::RenderWidgetHost* render_widget_host, | 104 content::RenderWidgetHost* render_widget_host, |
| 103 const std::vector<uint8_t>& message); | 105 const std::vector<uint8_t>& message); |
| 104 | 106 |
| 105 // Sets a RenderWidgetMessageDelegate to be notified of all incoming | 107 // Sets a RenderWidgetMessageDelegate to be notified of all incoming |
| 106 // RenderWidget related messages for |tab_id| from the client. There can only | 108 // RenderWidget related messages for |tab_id| from the client. There can only |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 std::unique_ptr<BlimpMessageProcessor> input_message_sender_; | 182 std::unique_ptr<BlimpMessageProcessor> input_message_sender_; |
| 181 std::unique_ptr<BlimpMessageProcessor> ime_message_sender_; | 183 std::unique_ptr<BlimpMessageProcessor> ime_message_sender_; |
| 182 | 184 |
| 183 DISALLOW_COPY_AND_ASSIGN(EngineRenderWidgetFeature); | 185 DISALLOW_COPY_AND_ASSIGN(EngineRenderWidgetFeature); |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 } // namespace engine | 188 } // namespace engine |
| 187 } // namespace blimp | 189 } // namespace blimp |
| 188 | 190 |
| 189 #endif // BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ | 191 #endif // BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ |
| OLD | NEW |