commit | ca53d5f8460c9d543fc49355ef87eaefc559224f | [log] [tgz] |
---|---|---|
author | Darren Shen <shend@chromium.org> | Tue May 15 04:56:01 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 15 04:56:01 2018 |
tree | 011f5974f4e8a743192e18c2fb2440420d1ab508 | |
parent | c7508ecbfe46e265cb227541978cbf102bfe33c7 [diff] |
[VK] Pass incognito information to IME API. This patch adds a new attribute to the InputContext object in the IME API called 'shouldDoLearning'. Textfields in incognito tabs will return false for shouldDoLearning so that the IME can keep incognito and non-incognito profiles separate. To implement this, we add a new TextInputClient::ShouldDoLearning() method that is implemented by various types of text fields. The most interesting case is views::Textfield, which doesn't have any notion of incognito, so it should be up to owner of the textfield to decide if it's incognito or not. However, there are ~90 places where we construct a views::Textfield, so to prevent this CL getting too large, we default to 'false' for ShouldDoLearning and then we'll add support for learning on all the different textfields as needed. Bug: 311180 Change-Id: Id33b11505a2eb3154fed8c4747c05205c7bf7c77 Reviewed-on: https://chromium-review.googlesource.com/1049405 Reviewed-by: Yusuke Sato <yusukes@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Reviewed-by: Michael Wasserman <msw@chromium.org> Reviewed-by: James Cook <jamescook@chromium.org> Reviewed-by: Shu Chen <shuchen@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#558615}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .