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

Side by Side Diff: Source/core/accessibility/AXNodeObject.cpp

Issue 495763005: Switch to using accessibilityEnabled and inlineTextBoxAccessibilityEnabled from settings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/accessibility/AXObjectCache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 case ButtonRole: 1384 case ButtonRole:
1385 case PopUpButtonRole: 1385 case PopUpButtonRole:
1386 case CheckBoxRole: 1386 case CheckBoxRole:
1387 case RadioButtonRole: 1387 case RadioButtonRole:
1388 case TabRole: 1388 case TabRole:
1389 case ToggleButtonRole: 1389 case ToggleButtonRole:
1390 case ListBoxOptionRole: 1390 case ListBoxOptionRole:
1391 case ScrollBarRole: 1391 case ScrollBarRole:
1392 return false; 1392 return false;
1393 case StaticTextRole: 1393 case StaticTextRole:
1394 if (!axObjectCache()->inlineTextBoxAccessibility()) 1394 if (!axObjectCache()->inlineTextBoxAccessibilityEnabled())
1395 return false; 1395 return false;
1396 default: 1396 default:
1397 return true; 1397 return true;
1398 } 1398 }
1399 } 1399 }
1400 1400
1401 Element* AXNodeObject::actionElement() const 1401 Element* AXNodeObject::actionElement() const
1402 { 1402 {
1403 Node* node = this->node(); 1403 Node* node = this->node();
1404 if (!node) 1404 if (!node)
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 float range = maxValueForRange() - minValueForRange(); 1695 float range = maxValueForRange() - minValueForRange();
1696 float value = valueForRange(); 1696 float value = valueForRange();
1697 1697
1698 value += range * (percentChange / 100); 1698 value += range * (percentChange / 100);
1699 setValue(String::number(value)); 1699 setValue(String::number(value));
1700 1700
1701 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e); 1701 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e);
1702 } 1702 }
1703 1703
1704 } // namespace blink 1704 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/accessibility/AXObjectCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698