OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "web/WebRemoteFrameImpl.h" | 6 #include "web/WebRemoteFrameImpl.h" |
7 | 7 |
8 #include "core/frame/FrameOwner.h" | 8 #include "core/frame/FrameOwner.h" |
9 #include "core/frame/RemoteFrame.h" | 9 #include "core/frame/RemoteFrame.h" |
10 #include "core/frame/Settings.h" | |
10 #include "core/page/Page.h" | 11 #include "core/page/Page.h" |
11 #include "public/platform/WebFloatRect.h" | 12 #include "public/platform/WebFloatRect.h" |
12 #include "public/platform/WebRect.h" | 13 #include "public/platform/WebRect.h" |
13 #include "public/web/WebDocument.h" | 14 #include "public/web/WebDocument.h" |
14 #include "public/web/WebPerformance.h" | 15 #include "public/web/WebPerformance.h" |
15 #include "public/web/WebRange.h" | 16 #include "public/web/WebRange.h" |
16 #include "web/WebLocalFrameImpl.h" | 17 #include "web/WebLocalFrameImpl.h" |
17 #include "web/WebViewImpl.h" | 18 #include "web/WebViewImpl.h" |
18 #include <v8/include/v8.h> | 19 #include <v8/include/v8.h> |
19 | 20 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 void WebRemoteFrameImpl::setPermissionClient(WebPermissionClient*) | 173 void WebRemoteFrameImpl::setPermissionClient(WebPermissionClient*) |
173 { | 174 { |
174 ASSERT_NOT_REACHED(); | 175 ASSERT_NOT_REACHED(); |
175 } | 176 } |
176 | 177 |
177 void WebRemoteFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerReposito ryClient*) | 178 void WebRemoteFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerReposito ryClient*) |
178 { | 179 { |
179 ASSERT_NOT_REACHED(); | 180 ASSERT_NOT_REACHED(); |
180 } | 181 } |
181 | 182 |
183 void WebRemoteFrameImpl::setAccessibilityEnabled(bool enabled) | |
184 { | |
185 if (!frame()) | |
186 return; | |
187 if (!frame()->settings()) | |
188 return; | |
189 frame()->settings()->setAccessibilityEnabled(enabled); | |
190 } | |
191 | |
192 void WebRemoteFrameImpl::setInlineTextBoxAccessibilityEnabled(bool enabled) | |
193 { | |
194 if (!frame()) | |
195 return; | |
196 if (!frame()->settings()) | |
197 return; | |
198 frame()->settings()->setInlineTextBoxAccessibilityEnabled(enabled); | |
199 } | |
abarth-chromium
2014/08/23 05:59:11
This makes no sense. A remote frame is in a diffe
aboxhall
2014/08/27 15:26:33
Done.
| |
200 | |
182 void WebRemoteFrameImpl::setCanHaveScrollbars(bool) | 201 void WebRemoteFrameImpl::setCanHaveScrollbars(bool) |
183 { | 202 { |
184 ASSERT_NOT_REACHED(); | 203 ASSERT_NOT_REACHED(); |
185 } | 204 } |
186 | 205 |
187 WebSize WebRemoteFrameImpl::scrollOffset() const | 206 WebSize WebRemoteFrameImpl::scrollOffset() const |
188 { | 207 { |
189 ASSERT_NOT_REACHED(); | 208 ASSERT_NOT_REACHED(); |
190 return WebSize(); | 209 return WebSize(); |
191 } | 210 } |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
830 | 849 |
831 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) | 850 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) |
832 { | 851 { |
833 if (!frame.client()) | 852 if (!frame.client()) |
834 return 0; | 853 return 0; |
835 return static_cast<RemoteFrameClient*>(frame.client())->webFrame(); | 854 return static_cast<RemoteFrameClient*>(frame.client())->webFrame(); |
836 } | 855 } |
837 | 856 |
838 } // namespace blink | 857 } // namespace blink |
839 | 858 |
OLD | NEW |