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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/process/process.h" 17 #include "base/process/process.h"
18 #include "base/strings/string16.h" 18 #include "base/strings/string16.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "cc/output/compositor_frame.h" 20 #include "cc/output/compositor_frame.h"
21 #include "content/public/browser/browser_message_filter.h" 21 #include "content/public/browser/browser_message_filter.h"
22 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/render_process_host_observer.h" 24 #include "content/public/browser/render_process_host_observer.h"
25 #include "content/public/browser/web_contents_observer.h" 25 #include "content/public/browser/web_contents_observer.h"
26 #include "content/public/common/page_type.h" 26 #include "content/public/common/page_type.h"
27 #include "ipc/message_filter.h" 27 #include "ipc/message_filter.h"
28 #include "third_party/WebKit/public/web/WebInputEvent.h" 28 #include "third_party/WebKit/public/web/WebInputEvent.h"
29 #include "ui/accessibility/ax_node_data.h" 29 #include "ui/accessibility/ax_node_data.h"
30 #include "ui/base/ime/text_input_type.h"
30 #include "ui/events/keycodes/keyboard_codes.h" 31 #include "ui/events/keycodes/keyboard_codes.h"
31 #include "url/gurl.h" 32 #include "url/gurl.h"
32 33
33 #if defined(OS_WIN) 34 #if defined(OS_WIN)
34 #include "base/win/scoped_handle.h" 35 #include "base/win/scoped_handle.h"
35 #endif 36 #endif
36 37
37 namespace gfx { 38 namespace gfx {
38 class Point; 39 class Point;
39 } 40 }
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 499
499 void ReceivedAck(blink::WebInputEvent::Type ack_type, uint32_t ack_state); 500 void ReceivedAck(blink::WebInputEvent::Type ack_type, uint32_t ack_state);
500 501
501 blink::WebInputEvent::Type wait_for_type_; 502 blink::WebInputEvent::Type wait_for_type_;
502 uint32_t ack_result_; 503 uint32_t ack_result_;
503 base::Closure quit_; 504 base::Closure quit_;
504 505
505 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); 506 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher);
506 }; 507 };
507 508
509 class TextInputStateTestExport {
510 public:
511 static TextInputStateTestExport FromWebContents(
512 content::WebContents* web_contents);
513
514 const ui::TextInputType& type() const { return type_; }
515
516 const std::string& value() const { return value_; }
517
518 private:
519 TextInputStateTestExport(const ui::TextInputType& type,
520 const std::string& value);
521
522 ui::TextInputType type_;
523 std::string value_;
524 };
525
508 } // namespace content 526 } // namespace content
509 527
510 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 528 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW
« 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