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

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

Issue 2520013002: Reland of Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | blimp/engine/feature/engine_render_widget_feature.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
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 "ui/base/ime/text_input_client.h" 20 #include "ui/base/ime/text_input_client.h"
21 21
22 namespace blink { 22 namespace blink {
23 class WebGestureEvent; 23 class WebGestureEvent;
24 } 24 }
25 25
26 namespace content { 26 namespace content {
27 class RenderWidgetHost; 27 class RenderWidgetHost;
28 struct FormFieldData;
28 } 29 }
29 30
30 namespace blimp { 31 namespace blimp {
31 namespace engine { 32 namespace engine {
32 33
33 // Handles all incoming and outgoing protobuf message types tied to a specific 34 // Handles all incoming and outgoing protobuf message types tied to a specific
34 // RenderWidget. This includes BlimpMessage::INPUT, BlimpMessage::COMPOSITOR, 35 // RenderWidget. This includes BlimpMessage::INPUT, BlimpMessage::COMPOSITOR,
35 // and BlimpMessage::RENDER_WIDGET messages. Delegates can be added to be 36 // and BlimpMessage::RENDER_WIDGET messages. Delegates can be added to be
36 // notified of incoming messages. This class automatically handles dropping 37 // notified of incoming messages. This class automatically handles dropping
37 // stale BlimpMessage::RENDER_WIDGET messages from the client after a 38 // stale BlimpMessage::RENDER_WIDGET messages from the client after a
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::FormFieldData& field);
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 185
185 base::WeakPtrFactory<EngineRenderWidgetFeature> weak_factory_; 186 base::WeakPtrFactory<EngineRenderWidgetFeature> weak_factory_;
186 187
187 DISALLOW_COPY_AND_ASSIGN(EngineRenderWidgetFeature); 188 DISALLOW_COPY_AND_ASSIGN(EngineRenderWidgetFeature);
188 }; 189 };
189 190
190 } // namespace engine 191 } // namespace engine
191 } // namespace blimp 192 } // namespace blimp
192 193
193 #endif // BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_ 194 #endif // BLIMP_ENGINE_FEATURE_ENGINE_RENDER_WIDGET_FEATURE_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/engine/feature/engine_render_widget_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698