OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 } | 657 } |
658 | 658 |
659 void ChromeClientImpl::setCursorForPlugin(const WebCursorInfo& cursor) | 659 void ChromeClientImpl::setCursorForPlugin(const WebCursorInfo& cursor) |
660 { | 660 { |
661 setCursor(cursor); | 661 setCursor(cursor); |
662 } | 662 } |
663 | 663 |
664 void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCach
e::AXNotification notification) | 664 void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCach
e::AXNotification notification) |
665 { | 665 { |
666 // Alert assistive technology about the accessibility object notification. | 666 // Alert assistive technology about the accessibility object notification. |
667 if (!obj) | 667 if (!obj || !obj->documentFrameView()) |
668 return; | 668 return; |
| 669 |
| 670 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(obj->documentFram
eView()->frame()); |
| 671 if (webframe && webframe->client()) |
| 672 webframe->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEven
t(notification)); |
| 673 |
| 674 // FIXME: delete these lines once Chrome only uses the frame client interfac
e, above. |
669 if (m_webView->client()) | 675 if (m_webView->client()) |
670 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve
nt(notification)); | 676 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve
nt(notification)); |
671 } | 677 } |
672 | 678 |
673 String ChromeClientImpl::acceptLanguages() | 679 String ChromeClientImpl::acceptLanguages() |
674 { | 680 { |
675 return m_webView->client()->acceptLanguages(); | 681 return m_webView->client()->acceptLanguages(); |
676 } | 682 } |
677 | 683 |
678 bool ChromeClientImpl::paintCustomOverhangArea(GraphicsContext* context, const I
ntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRe
ct& dirtyRect) | 684 bool ChromeClientImpl::paintCustomOverhangArea(GraphicsContext* context, const I
ntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRe
ct& dirtyRect) |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); | 882 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); |
877 } | 883 } |
878 | 884 |
879 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 885 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
880 { | 886 { |
881 if (m_webView->autofillClient()) | 887 if (m_webView->autofillClient()) |
882 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 888 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
883 } | 889 } |
884 | 890 |
885 } // namespace blink | 891 } // namespace blink |
OLD | NEW |