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

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

Issue 2279413002: Clean up: Accessibility no longer needs site instance or transforms (Closed)
Patch Set: Created 4 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 int acc_focus_obj_id, 81 int acc_focus_obj_id,
82 int end_offset) override {} 82 int end_offset) override {}
83 void AccessibilitySetValue(int acc_obj_id, const base::string16& value) 83 void AccessibilitySetValue(int acc_obj_id, const base::string16& value)
84 override {} 84 override {}
85 bool AccessibilityViewHasFocus() const override { return false; } 85 bool AccessibilityViewHasFocus() const override { return false; }
86 gfx::Rect AccessibilityGetViewBounds() const override { return gfx::Rect(); } 86 gfx::Rect AccessibilityGetViewBounds() const override { return gfx::Rect(); }
87 gfx::Point AccessibilityOriginInScreen( 87 gfx::Point AccessibilityOriginInScreen(
88 const gfx::Rect& bounds) const override { 88 const gfx::Rect& bounds) const override {
89 return gfx::Point(); 89 return gfx::Point();
90 } 90 }
91 gfx::Rect AccessibilityTransformToRootCoordSpace(
92 const gfx::Rect& bounds) override { return gfx::Rect(); }
93 SiteInstance* AccessibilityGetSiteInstance() override { return nullptr; }
94 void AccessibilityHitTest(const gfx::Point& point) override {} 91 void AccessibilityHitTest(const gfx::Point& point) override {}
95 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override {} 92 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override {}
96 void AccessibilityFatalError() override { got_fatal_error_ = true; } 93 void AccessibilityFatalError() override { got_fatal_error_ = true; }
97 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override { 94 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override {
98 return gfx::kNullAcceleratedWidget; 95 return gfx::kNullAcceleratedWidget;
99 } 96 }
100 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override { 97 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override {
101 return nullptr; 98 return nullptr;
102 } 99 }
103 100
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 4, ui::FORWARDS_DIRECTION, ui::AX_TEXT_AFFINITY_DOWNSTREAM)); 1664 4, ui::FORWARDS_DIRECTION, ui::AX_TEXT_AFFINITY_DOWNSTREAM));
1668 1665
1669 // If the affinity is upstream, check that we get the second line. 1666 // If the affinity is upstream, check that we get the second line.
1670 ASSERT_EQ(0, static_text_accessible->GetLineStartBoundary( 1667 ASSERT_EQ(0, static_text_accessible->GetLineStartBoundary(
1671 4, ui::BACKWARDS_DIRECTION, ui::AX_TEXT_AFFINITY_UPSTREAM)); 1668 4, ui::BACKWARDS_DIRECTION, ui::AX_TEXT_AFFINITY_UPSTREAM));
1672 ASSERT_EQ(4, static_text_accessible->GetLineStartBoundary( 1669 ASSERT_EQ(4, static_text_accessible->GetLineStartBoundary(
1673 4, ui::FORWARDS_DIRECTION, ui::AX_TEXT_AFFINITY_UPSTREAM)); 1670 4, ui::FORWARDS_DIRECTION, ui::AX_TEXT_AFFINITY_UPSTREAM));
1674 } 1671 }
1675 1672
1676 } // namespace content 1673 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698