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

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

Issue 813473004: Introducing new API placeHolder() to expose placeholder attribute on MAC (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporating comments Created 6 years 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
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | public/web/WebAXObject.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) 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 230 }
231 231
232 WebString WebAXObject::ariaAutoComplete() const 232 WebString WebAXObject::ariaAutoComplete() const
233 { 233 {
234 if (isDetached()) 234 if (isDetached())
235 return WebString(); 235 return WebString();
236 236
237 return m_private->ariaAutoComplete(); 237 return m_private->ariaAutoComplete();
238 } 238 }
239 239
240 WebString WebAXObject::placeholder() const
241 {
242 if (isDetached())
243 return WebString();
244
245 return WebString(m_private->placeholder());
246 }
247
240 bool WebAXObject::isButtonStateMixed() const 248 bool WebAXObject::isButtonStateMixed() const
241 { 249 {
242 if (isDetached()) 250 if (isDetached())
243 return false; 251 return false;
244 252
245 return m_private->checkboxOrRadioValue() == ButtonStateMixed; 253 return m_private->checkboxOrRadioValue() == ButtonStateMixed;
246 } 254 }
247 255
248 bool WebAXObject::isChecked() const 256 bool WebAXObject::isChecked() const
249 { 257 {
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 m_private = object; 1271 m_private = object;
1264 return *this; 1272 return *this;
1265 } 1273 }
1266 1274
1267 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1275 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1268 { 1276 {
1269 return m_private.get(); 1277 return m_private.get();
1270 } 1278 }
1271 1279
1272 } // namespace blink 1280 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698