OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 String toolTip = result.spellingToolTip(toolTipDirection); | 353 String toolTip = result.spellingToolTip(toolTipDirection); |
354 | 354 |
355 // Next we'll consider a tooltip for element with "title" attribute | 355 // Next we'll consider a tooltip for element with "title" attribute |
356 if (toolTip.isEmpty()) | 356 if (toolTip.isEmpty()) |
357 toolTip = result.title(toolTipDirection); | 357 toolTip = result.title(toolTipDirection); |
358 | 358 |
359 // Lastly, for <input type="file"> that allow multiple files, we'll consider
a tooltip for the selected filenames | 359 // Lastly, for <input type="file"> that allow multiple files, we'll consider
a tooltip for the selected filenames |
360 if (toolTip.isEmpty()) { | 360 if (toolTip.isEmpty()) { |
361 if (Node* node = result.innerNonSharedNode()) { | 361 if (Node* node = result.innerNonSharedNode()) { |
362 if (node->hasTagName(inputTag)) { | 362 if (node->hasTagName(inputTag)) { |
363 HTMLInputElement* input = static_cast<HTMLInputElement*>(node); | 363 HTMLInputElement* input = toHTMLInputElement(node); |
364 toolTip = input->defaultToolTip(); | 364 toolTip = input->defaultToolTip(); |
365 | 365 |
366 // FIXME: We should obtain text direction of tooltip from | 366 // FIXME: We should obtain text direction of tooltip from |
367 // ChromeClient or platform. As of October 2011, all client | 367 // ChromeClient or platform. As of October 2011, all client |
368 // implementations don't use text direction information for | 368 // implementations don't use text direction information for |
369 // ChromeClient::setToolTip. We'll work on tooltip text | 369 // ChromeClient::setToolTip. We'll work on tooltip text |
370 // direction during bidi cleanup in form inputs. | 370 // direction during bidi cleanup in form inputs. |
371 toolTipDirection = LTR; | 371 toolTipDirection = LTR; |
372 } | 372 } |
373 } | 373 } |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 } | 454 } |
455 | 455 |
456 void Chrome::notifyPopupOpeningObservers() const | 456 void Chrome::notifyPopupOpeningObservers() const |
457 { | 457 { |
458 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); | 458 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); |
459 for (size_t i = 0; i < observers.size(); ++i) | 459 for (size_t i = 0; i < observers.size(); ++i) |
460 observers[i]->willOpenPopup(); | 460 observers[i]->willOpenPopup(); |
461 } | 461 } |
462 | 462 |
463 } // namespace WebCore | 463 } // namespace WebCore |
OLD | NEW |