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

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

Issue 1713723002: Implement accessibility support for CSS-transformed iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed another skia dependency Created 4 years, 10 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 void AccessibilityTransformToRootCoordSpace(gfx::Rect* bounds) override {}
91 void AccessibilityHitTest(const gfx::Point& point) override {} 92 void AccessibilityHitTest(const gfx::Point& point) override {}
92 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override {} 93 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override {}
93 void AccessibilityFatalError() override { got_fatal_error_ = true; } 94 void AccessibilityFatalError() override { got_fatal_error_ = true; }
94 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override { 95 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override {
95 return gfx::kNullAcceleratedWidget; 96 return gfx::kNullAcceleratedWidget;
96 } 97 }
97 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override { 98 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override {
98 return nullptr; 99 return nullptr;
99 } 100 }
100 101
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 events2[0].event_type = ui::AX_EVENT_NONE; 1477 events2[0].event_type = ui::AX_EVENT_NONE;
1477 manager->OnAccessibilityEvents(events2); 1478 manager->OnAccessibilityEvents(events2);
1478 1479
1479 // Make sure that the focused node was updated to the new root and 1480 // Make sure that the focused node was updated to the new root and
1480 // that this doesn't crash. 1481 // that this doesn't crash.
1481 ASSERT_EQ(3, manager->GetRoot()->GetId()); 1482 ASSERT_EQ(3, manager->GetRoot()->GetId());
1482 ASSERT_EQ(3, manager->GetFocus()->GetId()); 1483 ASSERT_EQ(3, manager->GetFocus()->GetId());
1483 } 1484 }
1484 1485
1485 } // namespace content 1486 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698