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

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

Issue 134643019: Add null check in ChromeClientImpl::postAccessibilityNotification() for SharedWorker refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months 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 | « no previous file | no next file » | 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 * 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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 info->selectedIndex = popupContainer->selectedIndex(); 770 info->selectedIndex = popupContainer->selectedIndex();
771 info->items.swap(outputItems); 771 info->items.swap(outputItems);
772 info->rightAligned = popupContainer->menuStyle().textDirection() == RTL; 772 info->rightAligned = popupContainer->menuStyle().textDirection() == RTL;
773 } 773 }
774 774
775 void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCach e::AXNotification notification) 775 void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCach e::AXNotification notification)
776 { 776 {
777 // Alert assistive technology about the accessibility object notification. 777 // Alert assistive technology about the accessibility object notification.
778 if (!obj) 778 if (!obj)
779 return; 779 return;
780 780 if (m_webView->client())
781 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEvent(n otification)); 781 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve nt(notification));
782 } 782 }
783 783
784 String ChromeClientImpl::acceptLanguages() 784 String ChromeClientImpl::acceptLanguages()
785 { 785 {
786 return m_webView->client()->acceptLanguages(); 786 return m_webView->client()->acceptLanguages();
787 } 787 }
788 788
789 bool ChromeClientImpl::paintCustomOverhangArea(GraphicsContext* context, const I ntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRe ct& dirtyRect) 789 bool ChromeClientImpl::paintCustomOverhangArea(GraphicsContext* context, const I ntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRe ct& dirtyRect)
790 { 790 {
791 Frame* frame = m_webView->mainFrameImpl()->frame(); 791 Frame* frame = m_webView->mainFrameImpl()->frame();
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 notImplemented(); 1036 notImplemented();
1037 return NavigatorContentUtilsClient::CustomHandlersDeclined; 1037 return NavigatorContentUtilsClient::CustomHandlersDeclined;
1038 } 1038 }
1039 1039
1040 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const String& baseURL, const String& url) 1040 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const String& baseURL, const String& url)
1041 { 1041 {
1042 notImplemented(); 1042 notImplemented();
1043 } 1043 }
1044 1044
1045 } // namespace blink 1045 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698