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

Unified Diff: content/public/test/browser_test_utils.h

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged Created 4 years, 8 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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index a07ed26205bb054dbabac92d274ea4a7bf4134f9..1fa66912076b84a63d90a7330e81f2b15f67a0c1 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -27,6 +27,7 @@
#include "ipc/message_filter.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "ui/accessibility/ax_node_data.h"
+#include "ui/base/ime/text_input_type.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "url/gurl.h"
@@ -505,6 +506,23 @@ class InputMsgWatcher : public BrowserMessageFilter {
DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher);
};
+class TextInputStateTestExport {
+ public:
+ static TextInputStateTestExport FromWebContents(
+ content::WebContents* web_contents);
+
+ const ui::TextInputType& type() const { return type_; }
+
+ const std::string& value() const { return value_; }
+
+ private:
+ TextInputStateTestExport(const ui::TextInputType& type,
+ const std::string& value);
+
+ ui::TextInputType type_;
+ std::string value_;
+};
+
} // namespace content
#endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
« no previous file with comments | « content/content_common.gypi ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698