| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include <queue> | 5 #include <queue> |
| 6 #include <set> | 6 #include <set> |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 3305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3316 | 3316 |
| 3317 const ui::AXNodeData& node_data() const { return node_data_; } | 3317 const ui::AXNodeData& node_data() const { return node_data_; } |
| 3318 | 3318 |
| 3319 private: | 3319 private: |
| 3320 scoped_refptr<content::MessageLoopRunner> loop_runner_; | 3320 scoped_refptr<content::MessageLoopRunner> loop_runner_; |
| 3321 ui::AXEvent event_; | 3321 ui::AXEvent event_; |
| 3322 ui::AXNodeData node_data_; | 3322 ui::AXNodeData node_data_; |
| 3323 size_t count_; | 3323 size_t count_; |
| 3324 }; | 3324 }; |
| 3325 | 3325 |
| 3326 IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, TouchAccessibility) { | 3326 IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, DISABLED_TouchAccessibility) { |
| 3327 LoadAppWithGuest("web_view/touch_accessibility"); | 3327 LoadAppWithGuest("web_view/touch_accessibility"); |
| 3328 content::WebContents* web_contents = GetFirstAppWindowWebContents(); | 3328 content::WebContents* web_contents = GetFirstAppWindowWebContents(); |
| 3329 content::EnableAccessibilityForWebContents(web_contents); | 3329 content::EnableAccessibilityForWebContents(web_contents); |
| 3330 content::WebContents* guest_web_contents = GetGuestWebContents(); | 3330 content::WebContents* guest_web_contents = GetGuestWebContents(); |
| 3331 content::EnableAccessibilityForWebContents(guest_web_contents); | 3331 content::EnableAccessibilityForWebContents(guest_web_contents); |
| 3332 | 3332 |
| 3333 // Listen for accessibility events on both WebContents. | 3333 // Listen for accessibility events on both WebContents. |
| 3334 WebContentsAccessibilityEventWatcher main_event_watcher( | 3334 WebContentsAccessibilityEventWatcher main_event_watcher( |
| 3335 web_contents, ui::AX_EVENT_HOVER); | 3335 web_contents, ui::AX_EVENT_HOVER); |
| 3336 WebContentsAccessibilityEventWatcher guest_event_watcher( | 3336 WebContentsAccessibilityEventWatcher guest_event_watcher( |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3830 gfx::Point embedder_origin = | 3830 gfx::Point embedder_origin = |
| 3831 GetEmbedderWebContents()->GetContainerBounds().origin(); | 3831 GetEmbedderWebContents()->GetContainerBounds().origin(); |
| 3832 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); | 3832 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); |
| 3833 | 3833 |
| 3834 // Generate and send synthetic touch event. | 3834 // Generate and send synthetic touch event. |
| 3835 content::SimulateTouchPressAt(GetEmbedderWebContents(), | 3835 content::SimulateTouchPressAt(GetEmbedderWebContents(), |
| 3836 guest_rect.CenterPoint()); | 3836 guest_rect.CenterPoint()); |
| 3837 EXPECT_TRUE(aura_webview->HasFocus()); | 3837 EXPECT_TRUE(aura_webview->HasFocus()); |
| 3838 } | 3838 } |
| 3839 #endif | 3839 #endif |
| OLD | NEW |