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

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

Issue 415633002: Simplify access to LegacyRenderWidgetHostHWND. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_ax_4
Patch Set: Rebase and fix style issue Created 6 years, 4 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return gfx::Rect(); 83 return gfx::Rect();
84 } 84 }
85 virtual gfx::Point AccessibilityOriginInScreen( 85 virtual gfx::Point AccessibilityOriginInScreen(
86 const gfx::Rect& bounds) const OVERRIDE { 86 const gfx::Rect& bounds) const OVERRIDE {
87 return gfx::Point(); 87 return gfx::Point();
88 } 88 }
89 virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE {} 89 virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE {}
90 virtual void AccessibilityFatalError() OVERRIDE { 90 virtual void AccessibilityFatalError() OVERRIDE {
91 got_fatal_error_ = true; 91 got_fatal_error_ = true;
92 } 92 }
93 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE {
94 return gfx::kNullAcceleratedWidget;
95 }
96 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible()
97 OVERRIDE {
98 return NULL;
99 }
93 100
94 bool got_fatal_error() const { return got_fatal_error_; } 101 bool got_fatal_error() const { return got_fatal_error_; }
95 void reset_got_fatal_error() { got_fatal_error_ = false; } 102 void reset_got_fatal_error() { got_fatal_error_ = false; }
96 103
97 private: 104 private:
98 bool got_fatal_error_; 105 bool got_fatal_error_;
99 }; 106 };
100 107
101 } // anonymous namespace 108 } // anonymous namespace
102 109
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 ASSERT_EQ(NULL, manager->NextInTreeOrder(node5_accessible)); 933 ASSERT_EQ(NULL, manager->NextInTreeOrder(node5_accessible));
927 934
928 ASSERT_EQ(NULL, manager->PreviousInTreeOrder(NULL)); 935 ASSERT_EQ(NULL, manager->PreviousInTreeOrder(NULL));
929 ASSERT_EQ(node4_accessible, manager->PreviousInTreeOrder(node5_accessible)); 936 ASSERT_EQ(node4_accessible, manager->PreviousInTreeOrder(node5_accessible));
930 ASSERT_EQ(node3_accessible, manager->PreviousInTreeOrder(node4_accessible)); 937 ASSERT_EQ(node3_accessible, manager->PreviousInTreeOrder(node4_accessible));
931 ASSERT_EQ(node2_accessible, manager->PreviousInTreeOrder(node3_accessible)); 938 ASSERT_EQ(node2_accessible, manager->PreviousInTreeOrder(node3_accessible));
932 ASSERT_EQ(root_accessible, manager->PreviousInTreeOrder(node2_accessible)); 939 ASSERT_EQ(root_accessible, manager->PreviousInTreeOrder(node2_accessible));
933 } 940 }
934 941
935 } // namespace content 942 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698