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

Side by Side Diff: blimp/engine/session/blimp_engine_session.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Extracting info through RHVW 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
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_SESSION_BLIMP_ENGINE_SESSION_H_ 5 #ifndef BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_
6 #define BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_ 6 #define BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // ui::InputMethodObserver overrides. 145 // ui::InputMethodObserver overrides.
146 void OnTextInputTypeChanged(const ui::TextInputClient* client) override; 146 void OnTextInputTypeChanged(const ui::TextInputClient* client) override;
147 void OnFocus() override; 147 void OnFocus() override;
148 void OnBlur() override; 148 void OnBlur() override;
149 void OnCaretBoundsChanged(const ui::TextInputClient* client) override; 149 void OnCaretBoundsChanged(const ui::TextInputClient* client) override;
150 void OnTextInputStateChanged(const ui::TextInputClient* client) override; 150 void OnTextInputStateChanged(const ui::TextInputClient* client) override;
151 void OnInputMethodDestroyed(const ui::InputMethod* input_method) override; 151 void OnInputMethodDestroyed(const ui::InputMethod* input_method) override;
152 void OnShowImeIfNeeded() override; 152 void OnShowImeIfNeeded() override;
153 153
154 // Sends text input field related information to the client.
155 void FetchTextInputInfo(const std::string& text,
156 const std::string& placeholder);
157
154 // Sets up |new_contents| to be associated with the root window. 158 // Sets up |new_contents| to be associated with the root window.
155 void PlatformSetContents(std::unique_ptr<content::WebContents> new_contents, 159 void PlatformSetContents(std::unique_ptr<content::WebContents> new_contents,
156 const int target_tab_id); 160 const int target_tab_id);
157 161
158 // Presents the client's single screen. 162 // Presents the client's single screen.
159 // Screen should be deleted after browser context (crbug.com/613372). 163 // Screen should be deleted after browser context (crbug.com/613372).
160 std::unique_ptr<BlimpScreen> screen_; 164 std::unique_ptr<BlimpScreen> screen_;
161 165
162 // Content BrowserContext for this session. 166 // Content BrowserContext for this session.
163 std::unique_ptr<BlimpBrowserContext> browser_context_; 167 std::unique_ptr<BlimpBrowserContext> browser_context_;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 217
214 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_; 218 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_;
215 219
216 // Used to send TAB_CONTROL or NAVIGATION messages to client. 220 // Used to send TAB_CONTROL or NAVIGATION messages to client.
217 std::unique_ptr<BlimpMessageProcessor> tab_control_message_sender_; 221 std::unique_ptr<BlimpMessageProcessor> tab_control_message_sender_;
218 std::unique_ptr<BlimpMessageProcessor> navigation_message_sender_; 222 std::unique_ptr<BlimpMessageProcessor> navigation_message_sender_;
219 223
220 // TODO(haibinlu): Support more than one tab (crbug/547231) 224 // TODO(haibinlu): Support more than one tab (crbug/547231)
221 std::unique_ptr<Tab> tab_; 225 std::unique_ptr<Tab> tab_;
222 226
227 base::WeakPtrFactory<BlimpEngineSession> weak_factory_;
228
223 DISALLOW_COPY_AND_ASSIGN(BlimpEngineSession); 229 DISALLOW_COPY_AND_ASSIGN(BlimpEngineSession);
224 }; 230 };
225 231
226 } // namespace engine 232 } // namespace engine
227 } // namespace blimp 233 } // namespace blimp
228 234
229 #endif // BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_ 235 #endif // BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698