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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: blimp/engine/session/blimp_engine_session.h
diff --git a/blimp/engine/session/blimp_engine_session.h b/blimp/engine/session/blimp_engine_session.h
index f815a5a4102bbea8adf17761084503447995292e..b74d2de2f85e9fbb549b1ca5fa0da02e0d5f7a06 100644
--- a/blimp/engine/session/blimp_engine_session.h
+++ b/blimp/engine/session/blimp_engine_session.h
@@ -151,6 +151,10 @@ class BlimpEngineSession : public BlimpMessageProcessor,
void OnInputMethodDestroyed(const ui::InputMethod* input_method) override;
void OnShowImeIfNeeded() override;
+ // Sends text input field related information to the client.
+ void FetchTextInputInfo(const std::string& text,
+ const std::string& placeholder);
+
// Sets up |new_contents| to be associated with the root window.
void PlatformSetContents(std::unique_ptr<content::WebContents> new_contents,
const int target_tab_id);
@@ -220,6 +224,8 @@ class BlimpEngineSession : public BlimpMessageProcessor,
// TODO(haibinlu): Support more than one tab (crbug/547231)
std::unique_ptr<Tab> tab_;
+ base::WeakPtrFactory<BlimpEngineSession> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(BlimpEngineSession);
};

Powered by Google App Engine
This is Rietveld 408576698