| 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 } | 658 } |
| 659 | 659 |
| 660 void ChromeClientImpl::setCursorForPlugin(const WebCursorInfo& cursor) | 660 void ChromeClientImpl::setCursorForPlugin(const WebCursorInfo& cursor) |
| 661 { | 661 { |
| 662 setCursor(cursor); | 662 setCursor(cursor); |
| 663 } | 663 } |
| 664 | 664 |
| 665 void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCach
e::AXNotification notification) | 665 void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCach
e::AXNotification notification) |
| 666 { | 666 { |
| 667 // Alert assistive technology about the accessibility object notification. | 667 // Alert assistive technology about the accessibility object notification. |
| 668 if (!obj || !obj->documentFrameView()) | 668 if (!obj || !obj->document()) |
| 669 return; | 669 return; |
| 670 | 670 |
| 671 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(obj->documentFram
eView()->frame()); | 671 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(obj->document()->
axObjectCacheOwner().frame()); |
| 672 if (webframe && webframe->client()) | 672 if (webframe && webframe->client()) |
| 673 webframe->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEven
t(notification)); | 673 webframe->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEven
t(notification)); |
| 674 | 674 |
| 675 // FIXME: delete these lines once Chrome only uses the frame client interfac
e, above. | 675 // FIXME: delete these lines once Chrome only uses the frame client interfac
e, above. |
| 676 if (m_webView->client()) | 676 if (m_webView->client()) |
| 677 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve
nt(notification)); | 677 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve
nt(notification)); |
| 678 } | 678 } |
| 679 | 679 |
| 680 String ChromeClientImpl::acceptLanguages() | 680 String ChromeClientImpl::acceptLanguages() |
| 681 { | 681 { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); | 888 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); |
| 889 } | 889 } |
| 890 | 890 |
| 891 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 891 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
| 892 { | 892 { |
| 893 if (m_webView->autofillClient()) | 893 if (m_webView->autofillClient()) |
| 894 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 894 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
| 895 } | 895 } |
| 896 | 896 |
| 897 } // namespace blink | 897 } // namespace blink |
| OLD | NEW |