Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Side by Side Diff: blimp/engine/feature/engine_render_widget_feature.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Observing InputMethod Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698