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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 #include "WebPopupMenuInfo.h" | 60 #include "WebPopupMenuInfo.h" |
61 #include "WebSettings.h" | 61 #include "WebSettings.h" |
62 #include "WebSettingsImpl.h" | 62 #include "WebSettingsImpl.h" |
63 #include "WebTextDirection.h" | 63 #include "WebTextDirection.h" |
64 #include "WebUserGestureIndicator.h" | 64 #include "WebUserGestureIndicator.h" |
65 #include "WebUserGestureToken.h" | 65 #include "WebUserGestureToken.h" |
66 #include "WebViewClient.h" | 66 #include "WebViewClient.h" |
67 #include "WebViewImpl.h" | 67 #include "WebViewImpl.h" |
68 #include "WebWindowFeatures.h" | 68 #include "WebWindowFeatures.h" |
69 #include "bindings/v8/ScriptController.h" | 69 #include "bindings/v8/ScriptController.h" |
70 #include "bindings/v8/V8RecursionScope.h" | |
70 #include "core/accessibility/AXObject.h" | 71 #include "core/accessibility/AXObject.h" |
71 #include "core/accessibility/AXObjectCache.h" | 72 #include "core/accessibility/AXObjectCache.h" |
72 #include "core/dom/Document.h" | 73 #include "core/dom/Document.h" |
73 #include "core/dom/DocumentFullscreen.h" | 74 #include "core/dom/DocumentFullscreen.h" |
74 #include "core/dom/Node.h" | 75 #include "core/dom/Node.h" |
75 #include "core/events/KeyboardEvent.h" | 76 #include "core/events/KeyboardEvent.h" |
76 #include "core/events/MouseEvent.h" | 77 #include "core/events/MouseEvent.h" |
77 #include "core/events/WheelEvent.h" | 78 #include "core/events/WheelEvent.h" |
78 #include "core/html/HTMLInputElement.h" | 79 #include "core/html/HTMLInputElement.h" |
79 #include "core/loader/DocumentLoader.h" | 80 #include "core/loader/DocumentLoader.h" |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
671 { | 672 { |
672 // The current history item is not updated yet. That happens lazily when | 673 // The current history item is not updated yet. That happens lazily when |
673 // WebFrame::currentHistoryItem is requested. | 674 // WebFrame::currentHistoryItem is requested. |
674 WebFrameImpl* webframe = WebFrameImpl::fromFrame(node->document().frame()); | 675 WebFrameImpl* webframe = WebFrameImpl::fromFrame(node->document().frame()); |
675 if (webframe->client()) | 676 if (webframe->client()) |
676 webframe->client()->didUpdateCurrentHistoryItem(webframe); | 677 webframe->client()->didUpdateCurrentHistoryItem(webframe); |
677 } | 678 } |
678 | 679 |
679 void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCach e::AXNotification notification) | 680 void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCach e::AXNotification notification) |
680 { | 681 { |
682 V8RecursionScope::MicrotaskSuppression scope; | |
haraken
2014/02/24 11:06:09
hmm, this looks fragile. We don't want to add Micr
| |
683 | |
681 // Alert assistive technology about the accessibility object notification. | 684 // Alert assistive technology about the accessibility object notification. |
682 if (!obj) | 685 if (!obj) |
683 return; | 686 return; |
684 if (m_webView->client()) | 687 if (m_webView->client()) |
685 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve nt(notification)); | 688 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve nt(notification)); |
686 } | 689 } |
687 | 690 |
688 String ChromeClientImpl::acceptLanguages() | 691 String ChromeClientImpl::acceptLanguages() |
689 { | 692 { |
690 return m_webView->client()->acceptLanguages(); | 693 return m_webView->client()->acceptLanguages(); |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
957 { | 960 { |
958 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | 961 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); |
959 } | 962 } |
960 | 963 |
961 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | 964 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) |
962 { | 965 { |
963 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | 966 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
964 } | 967 } |
965 | 968 |
966 } // namespace blink | 969 } // namespace blink |
OLD | NEW |