OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. |
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 #include <memory> | 30 #include <memory> |
31 #include "core/frame/ContentSettingsClient.h" | 31 #include "core/frame/ContentSettingsClient.h" |
32 #include "core/frame/LocalFrame.h" | 32 #include "core/frame/LocalFrame.h" |
33 #include "core/frame/VisualViewport.h" | 33 #include "core/frame/VisualViewport.h" |
34 #include "core/html/HTMLFormElement.h" | 34 #include "core/html/HTMLFormElement.h" |
35 #include "core/html/forms/ColorChooser.h" | 35 #include "core/html/forms/ColorChooser.h" |
36 #include "core/html/forms/DateTimeChooser.h" | 36 #include "core/html/forms/DateTimeChooser.h" |
37 #include "core/loader/DocumentLoader.h" | 37 #include "core/loader/DocumentLoader.h" |
38 #include "platform/FileChooser.h" | 38 #include "platform/FileChooser.h" |
39 #include "platform/FrameViewBase.h" | 39 #include "platform/FrameViewBase.h" |
| 40 #include "platform/KeyboardLocker.h" |
40 #include "public/platform/Platform.h" | 41 #include "public/platform/Platform.h" |
41 #include "public/platform/WebApplicationCacheHost.h" | 42 #include "public/platform/WebApplicationCacheHost.h" |
42 #include "public/platform/WebMediaPlayer.h" | 43 #include "public/platform/WebMediaPlayer.h" |
43 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" | 44 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
44 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h
" | 45 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h
" |
45 #include "wtf/PtrUtil.h" | 46 #include "wtf/PtrUtil.h" |
46 | 47 |
47 namespace blink { | 48 namespace blink { |
48 | 49 |
49 void FillWithEmptyClients(Page::PageClients& page_clients) { | 50 void FillWithEmptyClients(Page::PageClients& page_clients) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 126 |
126 String EmptyChromeClient::AcceptLanguages() { | 127 String EmptyChromeClient::AcceptLanguages() { |
127 return String(); | 128 return String(); |
128 } | 129 } |
129 | 130 |
130 std::unique_ptr<WebFrameScheduler> EmptyChromeClient::CreateFrameScheduler( | 131 std::unique_ptr<WebFrameScheduler> EmptyChromeClient::CreateFrameScheduler( |
131 BlameContext*) { | 132 BlameContext*) { |
132 return WTF::MakeUnique<EmptyFrameScheduler>(); | 133 return WTF::MakeUnique<EmptyFrameScheduler>(); |
133 } | 134 } |
134 | 135 |
| 136 void EmptyChromeClient::RequestKeyLock(LocalFrame*, |
| 137 PassRefPtr<KeyboardLocker> locker) { |
| 138 DCHECK(locker); |
| 139 locker->FinishLockRequest( |
| 140 false, |
| 141 WebString::FromASCII("EmptyChromeClient does not support key lock.")); |
| 142 } |
| 143 |
135 NavigationPolicy EmptyLocalFrameClient::DecidePolicyForNavigation( | 144 NavigationPolicy EmptyLocalFrameClient::DecidePolicyForNavigation( |
136 const ResourceRequest&, | 145 const ResourceRequest&, |
137 DocumentLoader*, | 146 DocumentLoader*, |
138 NavigationType, | 147 NavigationType, |
139 NavigationPolicy, | 148 NavigationPolicy, |
140 bool, | 149 bool, |
141 bool, | 150 bool, |
142 HTMLFormElement*, | 151 HTMLFormElement*, |
143 ContentSecurityPolicyDisposition) { | 152 ContentSecurityPolicyDisposition) { |
144 return kNavigationPolicyIgnore; | 153 return kNavigationPolicyIgnore; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 216 |
208 std::unique_ptr<WebApplicationCacheHost> | 217 std::unique_ptr<WebApplicationCacheHost> |
209 EmptyLocalFrameClient::CreateApplicationCacheHost( | 218 EmptyLocalFrameClient::CreateApplicationCacheHost( |
210 WebApplicationCacheHostClient*) { | 219 WebApplicationCacheHostClient*) { |
211 return nullptr; | 220 return nullptr; |
212 } | 221 } |
213 | 222 |
214 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; | 223 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; |
215 | 224 |
216 } // namespace blink | 225 } // namespace blink |
OLD | NEW |