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

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

Issue 290633002: Implement Android accessible hit testing using an IPC to the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@better_logging_2
Patch Set: Remove unused function Created 6 years, 7 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual bool AccessibilityViewHasFocus() const OVERRIDE { 79 virtual bool AccessibilityViewHasFocus() const OVERRIDE {
80 return false; 80 return false;
81 } 81 }
82 virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE { 82 virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE {
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 AccessibilityFatalError() OVERRIDE { 90 virtual void AccessibilityFatalError() OVERRIDE {
90 got_fatal_error_ = true; 91 got_fatal_error_ = true;
91 } 92 }
92 93
93 bool got_fatal_error() const { return got_fatal_error_; } 94 bool got_fatal_error() const { return got_fatal_error_; }
94 void reset_got_fatal_error() { got_fatal_error_ = false; } 95 void reset_got_fatal_error() { got_fatal_error_ = false; }
95 96
96 private: 97 private:
97 bool got_fatal_error_; 98 bool got_fatal_error_;
98 }; 99 };
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 ASSERT_EQ(NULL, manager->NextInTreeOrder(node5_accessible)); 926 ASSERT_EQ(NULL, manager->NextInTreeOrder(node5_accessible));
926 927
927 ASSERT_EQ(NULL, manager->PreviousInTreeOrder(NULL)); 928 ASSERT_EQ(NULL, manager->PreviousInTreeOrder(NULL));
928 ASSERT_EQ(node4_accessible, manager->PreviousInTreeOrder(node5_accessible)); 929 ASSERT_EQ(node4_accessible, manager->PreviousInTreeOrder(node5_accessible));
929 ASSERT_EQ(node3_accessible, manager->PreviousInTreeOrder(node4_accessible)); 930 ASSERT_EQ(node3_accessible, manager->PreviousInTreeOrder(node4_accessible));
930 ASSERT_EQ(node2_accessible, manager->PreviousInTreeOrder(node3_accessible)); 931 ASSERT_EQ(node2_accessible, manager->PreviousInTreeOrder(node3_accessible));
931 ASSERT_EQ(root_accessible, manager->PreviousInTreeOrder(node2_accessible)); 932 ASSERT_EQ(root_accessible, manager->PreviousInTreeOrder(node2_accessible));
932 } 933 }
933 934
934 } // namespace content 935 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698