| 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 500 |
| 502 void ReceivedAck(blink::WebInputEvent::Type ack_type, uint32_t ack_state); | 501 void ReceivedAck(blink::WebInputEvent::Type ack_type, uint32_t ack_state); |
| 503 | 502 |
| 504 blink::WebInputEvent::Type wait_for_type_; | 503 blink::WebInputEvent::Type wait_for_type_; |
| 505 uint32_t ack_result_; | 504 uint32_t ack_result_; |
| 506 base::Closure quit_; | 505 base::Closure quit_; |
| 507 | 506 |
| 508 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); | 507 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); |
| 509 }; | 508 }; |
| 510 | 509 |
| 511 class TextInputStateTestExport { | |
| 512 public: | |
| 513 static TextInputStateTestExport FromWebContents( | |
| 514 content::WebContents* web_contents); | |
| 515 | |
| 516 const ui::TextInputType& type() const { return type_; } | |
| 517 | |
| 518 const std::string& value() const { return value_; } | |
| 519 | |
| 520 private: | |
| 521 TextInputStateTestExport(const ui::TextInputType& type, | |
| 522 const std::string& value); | |
| 523 | |
| 524 ui::TextInputType type_; | |
| 525 std::string value_; | |
| 526 }; | |
| 527 | |
| 528 } // namespace content | 510 } // namespace content |
| 529 | 511 |
| 530 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 512 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| OLD | NEW |