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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_unittest.cc

Issue 558073002: Hook up guest browser plugins to the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cross_process_iframes_plugins_3
Patch Set: Rebase Created 6 years, 3 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
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 #include "base/strings/string16.h" 5 #include "base/strings/string16.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "content/browser/accessibility/browser_accessibility.h" 7 #include "content/browser/accessibility/browser_accessibility.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include "content/browser/accessibility/browser_accessibility_win.h" 10 #include "content/browser/accessibility/browser_accessibility_win.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 got_fatal_error_ = true; 91 got_fatal_error_ = true;
92 } 92 }
93 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE { 93 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE {
94 return gfx::kNullAcceleratedWidget; 94 return gfx::kNullAcceleratedWidget;
95 } 95 }
96 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() 96 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible()
97 OVERRIDE { 97 OVERRIDE {
98 return NULL; 98 return NULL;
99 } 99 }
100 virtual BrowserAccessibilityManager* AccessibilityGetChildFrame( 100 virtual BrowserAccessibilityManager* AccessibilityGetChildFrame(
101 int64 frame_tree_node_id) OVERRIDE { 101 int accessibility_node_id) OVERRIDE {
102 return NULL; 102 return NULL;
103 } 103 }
104 virtual BrowserAccessibilityManager* AccessibilityGetParentFrame() OVERRIDE { 104 virtual BrowserAccessibility* AccessibilityGetParentFrame() OVERRIDE {
105 return NULL; 105 return NULL;
106 } 106 }
107 107
108 bool got_fatal_error() const { return got_fatal_error_; } 108 bool got_fatal_error() const { return got_fatal_error_; }
109 void reset_got_fatal_error() { got_fatal_error_ = false; } 109 void reset_got_fatal_error() { got_fatal_error_ = false; }
110 110
111 private: 111 private:
112 bool got_fatal_error_; 112 bool got_fatal_error_;
113 }; 113 };
114 114
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 ASSERT_EQ(NULL, manager->NextInTreeOrder(node5_accessible)); 940 ASSERT_EQ(NULL, manager->NextInTreeOrder(node5_accessible));
941 941
942 ASSERT_EQ(NULL, manager->PreviousInTreeOrder(NULL)); 942 ASSERT_EQ(NULL, manager->PreviousInTreeOrder(NULL));
943 ASSERT_EQ(node4_accessible, manager->PreviousInTreeOrder(node5_accessible)); 943 ASSERT_EQ(node4_accessible, manager->PreviousInTreeOrder(node5_accessible));
944 ASSERT_EQ(node3_accessible, manager->PreviousInTreeOrder(node4_accessible)); 944 ASSERT_EQ(node3_accessible, manager->PreviousInTreeOrder(node4_accessible));
945 ASSERT_EQ(node2_accessible, manager->PreviousInTreeOrder(node3_accessible)); 945 ASSERT_EQ(node2_accessible, manager->PreviousInTreeOrder(node3_accessible));
946 ASSERT_EQ(root_accessible, manager->PreviousInTreeOrder(node2_accessible)); 946 ASSERT_EQ(root_accessible, manager->PreviousInTreeOrder(node2_accessible));
947 } 947 }
948 948
949 } // namespace content 949 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager.cc ('k') | content/browser/frame_host/frame_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698