| 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> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/atomic_sequence_num.h" | 14 #include "base/atomic_sequence_num.h" |
| 15 #include "base/containers/small_map.h" | 15 #include "base/containers/small_map.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "blimp/engine/app/settings_manager.h" | 17 #include "blimp/engine/app/settings_manager.h" |
| 18 #include "blimp/net/blimp_message_processor.h" | 18 #include "blimp/net/blimp_message_processor.h" |
| 19 #include "blimp/net/input_message_converter.h" | 19 #include "blimp/net/input_message_converter.h" |
| 20 #include "content/common/text_input_state.h" |
| 20 #include "ui/base/ime/text_input_client.h" | 21 #include "ui/base/ime/text_input_client.h" |
| 21 | 22 |
| 22 namespace blink { | 23 namespace blink { |
| 23 class WebGestureEvent; | 24 class WebGestureEvent; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace content { | 27 namespace content { |
| 27 class RenderWidgetHost; | 28 class RenderWidgetHost; |
| 28 } | 29 } |
| 29 | 30 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Only one RenderWidget can be in initialized state for a tab. | 87 // Only one RenderWidget can be in initialized state for a tab. |
| 87 void OnRenderWidgetInitialized(const int tab_id, | 88 void OnRenderWidgetInitialized(const int tab_id, |
| 88 content::RenderWidgetHost* render_widget_host); | 89 content::RenderWidgetHost* render_widget_host); |
| 89 | 90 |
| 90 void OnRenderWidgetDeleted(const int tab_id, | 91 void OnRenderWidgetDeleted(const int tab_id, |
| 91 content::RenderWidgetHost* render_widget_host); | 92 content::RenderWidgetHost* render_widget_host); |
| 92 | 93 |
| 93 // Notifies the client to show/hide IME. | 94 // Notifies the client to show/hide IME. |
| 94 void SendShowImeRequest(const int tab_id, | 95 void SendShowImeRequest(const int tab_id, |
| 95 content::RenderWidgetHost* render_widget_host, | 96 content::RenderWidgetHost* render_widget_host, |
| 96 const ui::TextInputClient* client); | 97 const content::TextInputState* state); |
| 97 void SendHideImeRequest(const int tab_id, | 98 void SendHideImeRequest(const int tab_id, |
| 98 content::RenderWidgetHost* render_widget_host); | 99 content::RenderWidgetHost* render_widget_host); |
| 99 | 100 |
| 100 // Sends a CompositorMessage for |tab_id| to the client. | 101 // Sends a CompositorMessage for |tab_id| to the client. |
| 101 void SendCompositorMessage(const int tab_id, | 102 void SendCompositorMessage(const int tab_id, |
| 102 content::RenderWidgetHost* render_widget_host, | 103 content::RenderWidgetHost* render_widget_host, |
| 103 const std::vector<uint8_t>& message); | 104 const std::vector<uint8_t>& message); |
| 104 | 105 |
| 105 // Sets a RenderWidgetMessageDelegate to be notified of all incoming | 106 // Sets a RenderWidgetMessageDelegate to be notified of all incoming |
| 106 // RenderWidget related messages for |tab_id| from the client. There can only | 107 // 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_; | 181 std::unique_ptr<BlimpMessageProcessor> input_message_sender_; |
| 181 std::unique_ptr<BlimpMessageProcessor> ime_message_sender_; | 182 std::unique_ptr<BlimpMessageProcessor> ime_message_sender_; |
| 182 | 183 |
| 183 DISALLOW_COPY_AND_ASSIGN(EngineRenderWidgetFeature); | 184 DISALLOW_COPY_AND_ASSIGN(EngineRenderWidgetFeature); |
| 184 }; | 185 }; |
| 185 | 186 |
| 186 } // namespace engine | 187 } // namespace engine |
| 187 } // namespace blimp | 188 } // namespace blimp |
| 188 | 189 |
| 189 #endif // BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ | 190 #endif // BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ |
| OLD | NEW |