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 19 matching lines...) Expand all Loading... |
30 */ | 30 */ |
31 | 31 |
32 #include "config.h" | 32 #include "config.h" |
33 #include "web/ChromeClientImpl.h" | 33 #include "web/ChromeClientImpl.h" |
34 | 34 |
35 #include "bindings/core/v8/ScriptController.h" | 35 #include "bindings/core/v8/ScriptController.h" |
36 #include "core/HTMLNames.h" | 36 #include "core/HTMLNames.h" |
37 #include "core/accessibility/AXObject.h" | 37 #include "core/accessibility/AXObject.h" |
38 #include "core/accessibility/AXObjectCache.h" | 38 #include "core/accessibility/AXObjectCache.h" |
39 #include "core/dom/Document.h" | 39 #include "core/dom/Document.h" |
40 #include "core/dom/FullscreenElementStack.h" | 40 #include "core/dom/Fullscreen.h" |
41 #include "core/dom/Node.h" | 41 #include "core/dom/Node.h" |
42 #include "core/events/KeyboardEvent.h" | 42 #include "core/events/KeyboardEvent.h" |
43 #include "core/events/MouseEvent.h" | 43 #include "core/events/MouseEvent.h" |
44 #include "core/events/WheelEvent.h" | 44 #include "core/events/WheelEvent.h" |
45 #include "core/frame/Console.h" | 45 #include "core/frame/Console.h" |
46 #include "core/frame/FrameView.h" | 46 #include "core/frame/FrameView.h" |
47 #include "core/frame/Settings.h" | 47 #include "core/frame/Settings.h" |
48 #include "core/html/HTMLInputElement.h" | 48 #include "core/html/HTMLInputElement.h" |
49 #include "core/loader/DocumentLoader.h" | 49 #include "core/loader/DocumentLoader.h" |
50 #include "core/loader/FrameLoadRequest.h" | 50 #include "core/loader/FrameLoadRequest.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 NavigationPolicy navigationPolicy, ShouldSendReferrer shouldSendReferrer) | 215 NavigationPolicy navigationPolicy, ShouldSendReferrer shouldSendReferrer) |
216 { | 216 { |
217 if (!m_webView->client()) | 217 if (!m_webView->client()) |
218 return 0; | 218 return 0; |
219 | 219 |
220 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli
cy); | 220 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli
cy); |
221 if (policy == WebNavigationPolicyIgnore) | 221 if (policy == WebNavigationPolicyIgnore) |
222 policy = getNavigationPolicy(); | 222 policy = getNavigationPolicy(); |
223 | 223 |
224 ASSERT(frame->document()); | 224 ASSERT(frame->document()); |
225 FullscreenElementStack::from(*frame->document()).fullyExitFullscreen(); | 225 Fullscreen::from(*frame->document()).fullyExitFullscreen(); |
226 | 226 |
227 WebViewImpl* newView = toWebViewImpl( | 227 WebViewImpl* newView = toWebViewImpl( |
228 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra
ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul
dSendReferrer == NeverSendReferrer)); | 228 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra
ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul
dSendReferrer == NeverSendReferrer)); |
229 if (!newView) | 229 if (!newView) |
230 return 0; | 230 return 0; |
231 return newView->page(); | 231 return newView->page(); |
232 } | 232 } |
233 | 233 |
234 static inline void updatePolicyForEvent(const WebInputEvent* inputEvent, Navigat
ionPolicy* policy) | 234 static inline void updatePolicyForEvent(const WebInputEvent* inputEvent, Navigat
ionPolicy* policy) |
235 { | 235 { |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); | 869 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); |
870 } | 870 } |
871 | 871 |
872 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 872 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
873 { | 873 { |
874 if (m_webView->autofillClient()) | 874 if (m_webView->autofillClient()) |
875 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 875 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
876 } | 876 } |
877 | 877 |
878 } // namespace blink | 878 } // namespace blink |
OLD | NEW |