diff options
author | bshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 17:13:11 +0000 |
---|---|---|
committer | bshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 17:13:11 +0000 |
commit | cd33fc1003fbe0de043eef5bd1b42f3c0e0994e5 (patch) | |
tree | 48ce56ece826413ddb4059933c2dbc438ca546c7 /ui/keyboard/keyboard_controller_proxy.h | |
parent | 2114fef2a9fca042d847717183bb98161820c0e0 (diff) | |
download | chromium_src-cd33fc1003fbe0de043eef5bd1b42f3c0e0994e5.zip chromium_src-cd33fc1003fbe0de043eef5bd1b42f3c0e0994e5.tar.gz chromium_src-cd33fc1003fbe0de043eef5bd1b42f3c0e0994e5.tar.bz2 |
Add browser tests for password field behavior
BUG=352360
Review URL: https://codereview.chromium.org/211933002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260578 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r-- | ui/keyboard/keyboard_controller_proxy.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h index 8f48c0c..f05f6f2 100644 --- a/ui/keyboard/keyboard_controller_proxy.h +++ b/ui/keyboard/keyboard_controller_proxy.h @@ -31,6 +31,20 @@ namespace keyboard { // keyboard window. class KEYBOARD_EXPORT KeyboardControllerProxy { public: + class TestApi { + public: + explicit TestApi(KeyboardControllerProxy* proxy) : proxy_(proxy) {} + + const content::WebContents* keyboard_contents() { + return proxy_->keyboard_contents_.get(); + } + + private: + KeyboardControllerProxy* proxy_; + + DISALLOW_COPY_AND_ASSIGN(TestApi); + }; + KeyboardControllerProxy(); virtual ~KeyboardControllerProxy(); @@ -104,6 +118,8 @@ class KEYBOARD_EXPORT KeyboardControllerProxy { virtual void SetupWebContents(content::WebContents* contents); private: + friend class TestApi; + // Loads the web contents for the given |url|. void LoadContents(const GURL& url); |