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

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: 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
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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 m_private = object; 1254 m_private = object;
1247 return *this; 1255 return *this;
1248 } 1256 }
1249 1257
1250 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1258 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1251 { 1259 {
1252 return m_private.get(); 1260 return m_private.get();
1253 } 1261 }
1254 1262
1255 } // namespace blink 1263 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698