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

Side by Side Diff: third_party/WebKit/Source/web/WebAXObject.cpp

Issue 2707263011: Test aria-pressed=mixed on windows (Closed)
Patch Set: git cl try Created 3 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return static_cast<WebAXAriaCurrentState>(private_->GetAriaCurrentState()); 283 return static_cast<WebAXAriaCurrentState>(private_->GetAriaCurrentState());
284 } 284 }
285 285
286 bool WebAXObject::IsCheckable() const { 286 bool WebAXObject::IsCheckable() const {
287 if (IsDetached()) 287 if (IsDetached())
288 return false; 288 return false;
289 289
290 return private_->IsCheckable(); 290 return private_->IsCheckable();
291 } 291 }
292 292
293 WebAXCheckedState WebAXObject::CheckedState() const { 293 WebAXButtonState WebAXObject::CheckedState() const {
294 if (IsDetached()) 294 if (IsDetached())
295 return WebAXCheckedFalse; 295 return WebAXButtonStateOff;
296 296
297 return static_cast<WebAXCheckedState>(private_->CheckedState()); 297 return static_cast<WebAXButtonState>(private_->CheckedState());
298 }
299
300 WebAXButtonState WebAXObject::PressedState() const {
301 if (IsDetached())
302 return WebAXButtonStateOff;
303
304 return static_cast<WebAXButtonState>(private_->PressedState());
298 } 305 }
299 306
300 bool WebAXObject::IsClickable() const { 307 bool WebAXObject::IsClickable() const {
301 if (IsDetached()) 308 if (IsDetached())
302 return false; 309 return false;
303 310
304 return private_->IsClickable(); 311 return private_->IsClickable();
305 } 312 }
306 313
307 bool WebAXObject::IsCollapsed() const { 314 bool WebAXObject::IsCollapsed() const {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 return private_->IsOffScreen(); 388 return private_->IsOffScreen();
382 } 389 }
383 390
384 bool WebAXObject::IsPasswordField() const { 391 bool WebAXObject::IsPasswordField() const {
385 if (IsDetached()) 392 if (IsDetached())
386 return false; 393 return false;
387 394
388 return private_->IsPasswordField(); 395 return private_->IsPasswordField();
389 } 396 }
390 397
391 bool WebAXObject::IsPressed() const {
392 if (IsDetached())
393 return false;
394
395 return private_->IsPressed();
396 }
397
398 bool WebAXObject::IsReadOnly() const { 398 bool WebAXObject::IsReadOnly() const {
399 if (IsDetached()) 399 if (IsDetached())
400 return false; 400 return false;
401 401
402 return private_->IsReadOnly(); 402 return private_->IsReadOnly();
403 } 403 }
404 404
405 bool WebAXObject::IsRequired() const { 405 bool WebAXObject::IsRequired() const {
406 if (IsDetached()) 406 if (IsDetached())
407 return false; 407 return false;
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 WebAXObject& WebAXObject::operator=(AXObjectImpl* object) { 1556 WebAXObject& WebAXObject::operator=(AXObjectImpl* object) {
1557 private_ = object; 1557 private_ = object;
1558 return *this; 1558 return *this;
1559 } 1559 }
1560 1560
1561 WebAXObject::operator AXObjectImpl*() const { 1561 WebAXObject::operator AXObjectImpl*() const {
1562 return private_.Get(); 1562 return private_.Get();
1563 } 1563 }
1564 1564
1565 } // namespace blink 1565 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/web/WebAXEnums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698