OLD | NEW |
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" | |
31 #include "ui/events/keycodes/keyboard_codes.h" | 30 #include "ui/events/keycodes/keyboard_codes.h" |
32 #include "url/gurl.h" | 31 #include "url/gurl.h" |
33 | 32 |
34 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
35 #include "base/win/scoped_handle.h" | 34 #include "base/win/scoped_handle.h" |
36 #endif | 35 #endif |
37 | 36 |
38 namespace gfx { | 37 namespace gfx { |
39 class Point; | 38 class Point; |
40 } | 39 } |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 498 |
500 void ReceivedAck(blink::WebInputEvent::Type ack_type, uint32_t ack_state); | 499 void ReceivedAck(blink::WebInputEvent::Type ack_type, uint32_t ack_state); |
501 | 500 |
502 blink::WebInputEvent::Type wait_for_type_; | 501 blink::WebInputEvent::Type wait_for_type_; |
503 uint32_t ack_result_; | 502 uint32_t ack_result_; |
504 base::Closure quit_; | 503 base::Closure quit_; |
505 | 504 |
506 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); | 505 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); |
507 }; | 506 }; |
508 | 507 |
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 | |
526 } // namespace content | 508 } // namespace content |
527 | 509 |
528 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 510 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
OLD | NEW |