| 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 "web/WebRemoteFrameImpl.h" | 5 #include "web/WebRemoteFrameImpl.h" |
| 6 | 6 |
| 7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
| 8 #include "core/frame/Settings.h" | 8 #include "core/frame/Settings.h" |
| 9 #include "core/html/HTMLFrameOwnerElement.h" | 9 #include "core/html/HTMLFrameOwnerElement.h" |
| 10 #include "core/layout/LayoutObject.h" | 10 #include "core/layout/LayoutObject.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 #endif | 56 #endif |
| 57 | 57 |
| 58 bool WebRemoteFrameImpl::isWebLocalFrame() const | 58 bool WebRemoteFrameImpl::isWebLocalFrame() const |
| 59 { | 59 { |
| 60 return false; | 60 return false; |
| 61 } | 61 } |
| 62 | 62 |
| 63 WebLocalFrame* WebRemoteFrameImpl::toWebLocalFrame() | 63 WebLocalFrame* WebRemoteFrameImpl::toWebLocalFrame() |
| 64 { | 64 { |
| 65 ASSERT_NOT_REACHED(); | 65 NOTREACHED(); |
| 66 return nullptr; | 66 return nullptr; |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool WebRemoteFrameImpl::isWebRemoteFrame() const | 69 bool WebRemoteFrameImpl::isWebRemoteFrame() const |
| 70 { | 70 { |
| 71 return true; | 71 return true; |
| 72 } | 72 } |
| 73 | 73 |
| 74 WebRemoteFrame* WebRemoteFrameImpl::toWebRemoteFrame() | 74 WebRemoteFrame* WebRemoteFrameImpl::toWebRemoteFrame() |
| 75 { | 75 { |
| 76 return this; | 76 return this; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void WebRemoteFrameImpl::close() | 79 void WebRemoteFrameImpl::close() |
| 80 { | 80 { |
| 81 #if ENABLE(OILPAN) | 81 #if ENABLE(OILPAN) |
| 82 m_selfKeepAlive.clear(); | 82 m_selfKeepAlive.clear(); |
| 83 #else | 83 #else |
| 84 deref(); | 84 deref(); |
| 85 #endif | 85 #endif |
| 86 } | 86 } |
| 87 | 87 |
| 88 WebString WebRemoteFrameImpl::uniqueName() const | 88 WebString WebRemoteFrameImpl::uniqueName() const |
| 89 { | 89 { |
| 90 ASSERT_NOT_REACHED(); | 90 NOTREACHED(); |
| 91 return WebString(); | 91 return WebString(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 WebString WebRemoteFrameImpl::assignedName() const | 94 WebString WebRemoteFrameImpl::assignedName() const |
| 95 { | 95 { |
| 96 ASSERT_NOT_REACHED(); | 96 NOTREACHED(); |
| 97 return WebString(); | 97 return WebString(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 void WebRemoteFrameImpl::setName(const WebString&) | 100 void WebRemoteFrameImpl::setName(const WebString&) |
| 101 { | 101 { |
| 102 ASSERT_NOT_REACHED(); | 102 NOTREACHED(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 WebVector<WebIconURL> WebRemoteFrameImpl::iconURLs(int iconTypesMask) const | 105 WebVector<WebIconURL> WebRemoteFrameImpl::iconURLs(int iconTypesMask) const |
| 106 { | 106 { |
| 107 ASSERT_NOT_REACHED(); | 107 NOTREACHED(); |
| 108 return WebVector<WebIconURL>(); | 108 return WebVector<WebIconURL>(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void WebRemoteFrameImpl::setRemoteWebLayer(WebLayer* webLayer) | 111 void WebRemoteFrameImpl::setRemoteWebLayer(WebLayer* webLayer) |
| 112 { | 112 { |
| 113 if (!frame()) | 113 if (!frame()) |
| 114 return; | 114 return; |
| 115 | 115 |
| 116 frame()->setRemotePlatformLayer(webLayer); | 116 frame()->setRemotePlatformLayer(webLayer); |
| 117 } | 117 } |
| 118 | 118 |
| 119 void WebRemoteFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerReposito
ryClient*) | 119 void WebRemoteFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerReposito
ryClient*) |
| 120 { | 120 { |
| 121 ASSERT_NOT_REACHED(); | 121 NOTREACHED(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void WebRemoteFrameImpl::setCanHaveScrollbars(bool) | 124 void WebRemoteFrameImpl::setCanHaveScrollbars(bool) |
| 125 { | 125 { |
| 126 ASSERT_NOT_REACHED(); | 126 NOTREACHED(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 WebSize WebRemoteFrameImpl::scrollOffset() const | 129 WebSize WebRemoteFrameImpl::scrollOffset() const |
| 130 { | 130 { |
| 131 ASSERT_NOT_REACHED(); | 131 NOTREACHED(); |
| 132 return WebSize(); | 132 return WebSize(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 void WebRemoteFrameImpl::setScrollOffset(const WebSize&) | 135 void WebRemoteFrameImpl::setScrollOffset(const WebSize&) |
| 136 { | 136 { |
| 137 ASSERT_NOT_REACHED(); | 137 NOTREACHED(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 WebSize WebRemoteFrameImpl::contentsSize() const | 140 WebSize WebRemoteFrameImpl::contentsSize() const |
| 141 { | 141 { |
| 142 ASSERT_NOT_REACHED(); | 142 NOTREACHED(); |
| 143 return WebSize(); | 143 return WebSize(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 bool WebRemoteFrameImpl::hasVisibleContent() const | 146 bool WebRemoteFrameImpl::hasVisibleContent() const |
| 147 { | 147 { |
| 148 ASSERT_NOT_REACHED(); | 148 NOTREACHED(); |
| 149 return false; | 149 return false; |
| 150 } | 150 } |
| 151 | 151 |
| 152 WebRect WebRemoteFrameImpl::visibleContentRect() const | 152 WebRect WebRemoteFrameImpl::visibleContentRect() const |
| 153 { | 153 { |
| 154 ASSERT_NOT_REACHED(); | 154 NOTREACHED(); |
| 155 return WebRect(); | 155 return WebRect(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 bool WebRemoteFrameImpl::hasHorizontalScrollbar() const | 158 bool WebRemoteFrameImpl::hasHorizontalScrollbar() const |
| 159 { | 159 { |
| 160 ASSERT_NOT_REACHED(); | 160 NOTREACHED(); |
| 161 return false; | 161 return false; |
| 162 } | 162 } |
| 163 | 163 |
| 164 bool WebRemoteFrameImpl::hasVerticalScrollbar() const | 164 bool WebRemoteFrameImpl::hasVerticalScrollbar() const |
| 165 { | 165 { |
| 166 ASSERT_NOT_REACHED(); | 166 NOTREACHED(); |
| 167 return false; | 167 return false; |
| 168 } | 168 } |
| 169 | 169 |
| 170 WebView* WebRemoteFrameImpl::view() const | 170 WebView* WebRemoteFrameImpl::view() const |
| 171 { | 171 { |
| 172 if (!frame()) | 172 if (!frame()) |
| 173 return nullptr; | 173 return nullptr; |
| 174 return WebViewImpl::fromPage(frame()->page()); | 174 return WebViewImpl::fromPage(frame()->page()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 WebDocument WebRemoteFrameImpl::document() const | 177 WebDocument WebRemoteFrameImpl::document() const |
| 178 { | 178 { |
| 179 // TODO(dcheng): this should also ASSERT_NOT_REACHED, but a lot of | 179 // TODO(dcheng): this should also ASSERT_NOT_REACHED, but a lot of |
| 180 // code tries to access the document of a remote frame at the moment. | 180 // code tries to access the document of a remote frame at the moment. |
| 181 return WebDocument(); | 181 return WebDocument(); |
| 182 } | 182 } |
| 183 | 183 |
| 184 WebPerformance WebRemoteFrameImpl::performance() const | 184 WebPerformance WebRemoteFrameImpl::performance() const |
| 185 { | 185 { |
| 186 ASSERT_NOT_REACHED(); | 186 NOTREACHED(); |
| 187 return WebPerformance(); | 187 return WebPerformance(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 bool WebRemoteFrameImpl::dispatchBeforeUnloadEvent() | 190 bool WebRemoteFrameImpl::dispatchBeforeUnloadEvent() |
| 191 { | 191 { |
| 192 ASSERT_NOT_REACHED(); | 192 NOTREACHED(); |
| 193 return false; | 193 return false; |
| 194 } | 194 } |
| 195 | 195 |
| 196 void WebRemoteFrameImpl::dispatchUnloadEvent() | 196 void WebRemoteFrameImpl::dispatchUnloadEvent() |
| 197 { | 197 { |
| 198 ASSERT_NOT_REACHED(); | 198 NOTREACHED(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void WebRemoteFrameImpl::executeScript(const WebScriptSource&) | 201 void WebRemoteFrameImpl::executeScript(const WebScriptSource&) |
| 202 { | 202 { |
| 203 ASSERT_NOT_REACHED(); | 203 NOTREACHED(); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void WebRemoteFrameImpl::executeScriptInIsolatedWorld( | 206 void WebRemoteFrameImpl::executeScriptInIsolatedWorld( |
| 207 int worldID, const WebScriptSource* sources, unsigned numSources, | 207 int worldID, const WebScriptSource* sources, unsigned numSources, |
| 208 int extensionGroup) | 208 int extensionGroup) |
| 209 { | 209 { |
| 210 ASSERT_NOT_REACHED(); | 210 NOTREACHED(); |
| 211 } | 211 } |
| 212 | 212 |
| 213 void WebRemoteFrameImpl::setIsolatedWorldSecurityOrigin(int worldID, const WebSe
curityOrigin&) | 213 void WebRemoteFrameImpl::setIsolatedWorldSecurityOrigin(int worldID, const WebSe
curityOrigin&) |
| 214 { | 214 { |
| 215 ASSERT_NOT_REACHED(); | 215 NOTREACHED(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 void WebRemoteFrameImpl::setIsolatedWorldContentSecurityPolicy(int worldID, cons
t WebString&) | 218 void WebRemoteFrameImpl::setIsolatedWorldContentSecurityPolicy(int worldID, cons
t WebString&) |
| 219 { | 219 { |
| 220 ASSERT_NOT_REACHED(); | 220 NOTREACHED(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 void WebRemoteFrameImpl::addMessageToConsole(const WebConsoleMessage&) | 223 void WebRemoteFrameImpl::addMessageToConsole(const WebConsoleMessage&) |
| 224 { | 224 { |
| 225 ASSERT_NOT_REACHED(); | 225 NOTREACHED(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 void WebRemoteFrameImpl::collectGarbage() | 228 void WebRemoteFrameImpl::collectGarbage() |
| 229 { | 229 { |
| 230 ASSERT_NOT_REACHED(); | 230 NOTREACHED(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 v8::Local<v8::Value> WebRemoteFrameImpl::executeScriptAndReturnValue( | 233 v8::Local<v8::Value> WebRemoteFrameImpl::executeScriptAndReturnValue( |
| 234 const WebScriptSource&) | 234 const WebScriptSource&) |
| 235 { | 235 { |
| 236 ASSERT_NOT_REACHED(); | 236 NOTREACHED(); |
| 237 return v8::Local<v8::Value>(); | 237 return v8::Local<v8::Value>(); |
| 238 } | 238 } |
| 239 | 239 |
| 240 void WebRemoteFrameImpl::executeScriptInIsolatedWorld( | 240 void WebRemoteFrameImpl::executeScriptInIsolatedWorld( |
| 241 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, | 241 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, |
| 242 int extensionGroup, WebVector<v8::Local<v8::Value>>* results) | 242 int extensionGroup, WebVector<v8::Local<v8::Value>>* results) |
| 243 { | 243 { |
| 244 ASSERT_NOT_REACHED(); | 244 NOTREACHED(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 v8::Local<v8::Value> WebRemoteFrameImpl::callFunctionEvenIfScriptDisabled( | 247 v8::Local<v8::Value> WebRemoteFrameImpl::callFunctionEvenIfScriptDisabled( |
| 248 v8::Local<v8::Function>, | 248 v8::Local<v8::Function>, |
| 249 v8::Local<v8::Value>, | 249 v8::Local<v8::Value>, |
| 250 int argc, | 250 int argc, |
| 251 v8::Local<v8::Value> argv[]) | 251 v8::Local<v8::Value> argv[]) |
| 252 { | 252 { |
| 253 ASSERT_NOT_REACHED(); | 253 NOTREACHED(); |
| 254 return v8::Local<v8::Value>(); | 254 return v8::Local<v8::Value>(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 v8::Local<v8::Context> WebRemoteFrameImpl::mainWorldScriptContext() const | 257 v8::Local<v8::Context> WebRemoteFrameImpl::mainWorldScriptContext() const |
| 258 { | 258 { |
| 259 ASSERT_NOT_REACHED(); | 259 NOTREACHED(); |
| 260 return v8::Local<v8::Context>(); | 260 return v8::Local<v8::Context>(); |
| 261 } | 261 } |
| 262 | 262 |
| 263 v8::Local<v8::Context> WebRemoteFrameImpl::deprecatedMainWorldScriptContext() co
nst | 263 v8::Local<v8::Context> WebRemoteFrameImpl::deprecatedMainWorldScriptContext() co
nst |
| 264 { | 264 { |
| 265 return toV8Context(frame(), DOMWrapperWorld::mainWorld()); | 265 return toV8Context(frame(), DOMWrapperWorld::mainWorld()); |
| 266 } | 266 } |
| 267 | 267 |
| 268 void WebRemoteFrameImpl::reload(WebFrameLoadType) | 268 void WebRemoteFrameImpl::reload(WebFrameLoadType) |
| 269 { | 269 { |
| 270 ASSERT_NOT_REACHED(); | 270 NOTREACHED(); |
| 271 } | 271 } |
| 272 | 272 |
| 273 void WebRemoteFrameImpl::reloadWithOverrideURL(const WebURL& overrideUrl, WebFra
meLoadType) | 273 void WebRemoteFrameImpl::reloadWithOverrideURL(const WebURL& overrideUrl, WebFra
meLoadType) |
| 274 { | 274 { |
| 275 ASSERT_NOT_REACHED(); | 275 NOTREACHED(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 void WebRemoteFrameImpl::loadRequest(const WebURLRequest&) | 278 void WebRemoteFrameImpl::loadRequest(const WebURLRequest&) |
| 279 { | 279 { |
| 280 ASSERT_NOT_REACHED(); | 280 NOTREACHED(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 void WebRemoteFrameImpl::loadHistoryItem(const WebHistoryItem&, WebHistoryLoadTy
pe, WebCachePolicy) | 283 void WebRemoteFrameImpl::loadHistoryItem(const WebHistoryItem&, WebHistoryLoadTy
pe, WebCachePolicy) |
| 284 { | 284 { |
| 285 ASSERT_NOT_REACHED(); | 285 NOTREACHED(); |
| 286 } | 286 } |
| 287 | 287 |
| 288 void WebRemoteFrameImpl::loadHTMLString( | 288 void WebRemoteFrameImpl::loadHTMLString( |
| 289 const WebData& html, const WebURL& baseURL, const WebURL& unreachableURL, | 289 const WebData& html, const WebURL& baseURL, const WebURL& unreachableURL, |
| 290 bool replace) | 290 bool replace) |
| 291 { | 291 { |
| 292 ASSERT_NOT_REACHED(); | 292 NOTREACHED(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 void WebRemoteFrameImpl::stopLoading() | 295 void WebRemoteFrameImpl::stopLoading() |
| 296 { | 296 { |
| 297 // TODO(dcheng,japhet): Calling this method should stop loads | 297 // TODO(dcheng,japhet): Calling this method should stop loads |
| 298 // in all subframes, both remote and local. | 298 // in all subframes, both remote and local. |
| 299 } | 299 } |
| 300 | 300 |
| 301 WebDataSource* WebRemoteFrameImpl::provisionalDataSource() const | 301 WebDataSource* WebRemoteFrameImpl::provisionalDataSource() const |
| 302 { | 302 { |
| 303 ASSERT_NOT_REACHED(); | 303 NOTREACHED(); |
| 304 return nullptr; | 304 return nullptr; |
| 305 } | 305 } |
| 306 | 306 |
| 307 WebDataSource* WebRemoteFrameImpl::dataSource() const | 307 WebDataSource* WebRemoteFrameImpl::dataSource() const |
| 308 { | 308 { |
| 309 ASSERT_NOT_REACHED(); | 309 NOTREACHED(); |
| 310 return nullptr; | 310 return nullptr; |
| 311 } | 311 } |
| 312 | 312 |
| 313 void WebRemoteFrameImpl::enableViewSourceMode(bool enable) | 313 void WebRemoteFrameImpl::enableViewSourceMode(bool enable) |
| 314 { | 314 { |
| 315 ASSERT_NOT_REACHED(); | 315 NOTREACHED(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 bool WebRemoteFrameImpl::isViewSourceModeEnabled() const | 318 bool WebRemoteFrameImpl::isViewSourceModeEnabled() const |
| 319 { | 319 { |
| 320 ASSERT_NOT_REACHED(); | 320 NOTREACHED(); |
| 321 return false; | 321 return false; |
| 322 } | 322 } |
| 323 | 323 |
| 324 void WebRemoteFrameImpl::setReferrerForRequest(WebURLRequest&, const WebURL& ref
errer) | 324 void WebRemoteFrameImpl::setReferrerForRequest(WebURLRequest&, const WebURL& ref
errer) |
| 325 { | 325 { |
| 326 ASSERT_NOT_REACHED(); | 326 NOTREACHED(); |
| 327 } | 327 } |
| 328 | 328 |
| 329 void WebRemoteFrameImpl::dispatchWillSendRequest(WebURLRequest&) | 329 void WebRemoteFrameImpl::dispatchWillSendRequest(WebURLRequest&) |
| 330 { | 330 { |
| 331 ASSERT_NOT_REACHED(); | 331 NOTREACHED(); |
| 332 } | 332 } |
| 333 | 333 |
| 334 WebURLLoader* WebRemoteFrameImpl::createAssociatedURLLoader(const WebURLLoaderOp
tions&) | 334 WebURLLoader* WebRemoteFrameImpl::createAssociatedURLLoader(const WebURLLoaderOp
tions&) |
| 335 { | 335 { |
| 336 ASSERT_NOT_REACHED(); | 336 NOTREACHED(); |
| 337 return nullptr; | 337 return nullptr; |
| 338 } | 338 } |
| 339 | 339 |
| 340 unsigned WebRemoteFrameImpl::unloadListenerCount() const | 340 unsigned WebRemoteFrameImpl::unloadListenerCount() const |
| 341 { | 341 { |
| 342 ASSERT_NOT_REACHED(); | 342 NOTREACHED(); |
| 343 return 0; | 343 return 0; |
| 344 } | 344 } |
| 345 | 345 |
| 346 void WebRemoteFrameImpl::insertText(const WebString&) | 346 void WebRemoteFrameImpl::insertText(const WebString&) |
| 347 { | 347 { |
| 348 ASSERT_NOT_REACHED(); | 348 NOTREACHED(); |
| 349 } | 349 } |
| 350 | 350 |
| 351 void WebRemoteFrameImpl::setMarkedText(const WebString&, unsigned location, unsi
gned length) | 351 void WebRemoteFrameImpl::setMarkedText(const WebString&, unsigned location, unsi
gned length) |
| 352 { | 352 { |
| 353 ASSERT_NOT_REACHED(); | 353 NOTREACHED(); |
| 354 } | 354 } |
| 355 | 355 |
| 356 void WebRemoteFrameImpl::unmarkText() | 356 void WebRemoteFrameImpl::unmarkText() |
| 357 { | 357 { |
| 358 ASSERT_NOT_REACHED(); | 358 NOTREACHED(); |
| 359 } | 359 } |
| 360 | 360 |
| 361 bool WebRemoteFrameImpl::hasMarkedText() const | 361 bool WebRemoteFrameImpl::hasMarkedText() const |
| 362 { | 362 { |
| 363 ASSERT_NOT_REACHED(); | 363 NOTREACHED(); |
| 364 return false; | 364 return false; |
| 365 } | 365 } |
| 366 | 366 |
| 367 WebRange WebRemoteFrameImpl::markedRange() const | 367 WebRange WebRemoteFrameImpl::markedRange() const |
| 368 { | 368 { |
| 369 ASSERT_NOT_REACHED(); | 369 NOTREACHED(); |
| 370 return WebRange(); | 370 return WebRange(); |
| 371 } | 371 } |
| 372 | 372 |
| 373 bool WebRemoteFrameImpl::firstRectForCharacterRange(unsigned location, unsigned
length, WebRect&) const | 373 bool WebRemoteFrameImpl::firstRectForCharacterRange(unsigned location, unsigned
length, WebRect&) const |
| 374 { | 374 { |
| 375 ASSERT_NOT_REACHED(); | 375 NOTREACHED(); |
| 376 return false; | 376 return false; |
| 377 } | 377 } |
| 378 | 378 |
| 379 size_t WebRemoteFrameImpl::characterIndexForPoint(const WebPoint&) const | 379 size_t WebRemoteFrameImpl::characterIndexForPoint(const WebPoint&) const |
| 380 { | 380 { |
| 381 ASSERT_NOT_REACHED(); | 381 NOTREACHED(); |
| 382 return 0; | 382 return 0; |
| 383 } | 383 } |
| 384 | 384 |
| 385 bool WebRemoteFrameImpl::executeCommand(const WebString&, const WebNode&) | 385 bool WebRemoteFrameImpl::executeCommand(const WebString&, const WebNode&) |
| 386 { | 386 { |
| 387 ASSERT_NOT_REACHED(); | 387 NOTREACHED(); |
| 388 return false; | 388 return false; |
| 389 } | 389 } |
| 390 | 390 |
| 391 bool WebRemoteFrameImpl::executeCommand(const WebString&, const WebString& value
, const WebNode&) | 391 bool WebRemoteFrameImpl::executeCommand(const WebString&, const WebString& value
, const WebNode&) |
| 392 { | 392 { |
| 393 ASSERT_NOT_REACHED(); | 393 NOTREACHED(); |
| 394 return false; | 394 return false; |
| 395 } | 395 } |
| 396 | 396 |
| 397 bool WebRemoteFrameImpl::isCommandEnabled(const WebString&) const | 397 bool WebRemoteFrameImpl::isCommandEnabled(const WebString&) const |
| 398 { | 398 { |
| 399 ASSERT_NOT_REACHED(); | 399 NOTREACHED(); |
| 400 return false; | 400 return false; |
| 401 } | 401 } |
| 402 | 402 |
| 403 void WebRemoteFrameImpl::enableContinuousSpellChecking(bool) | 403 void WebRemoteFrameImpl::enableContinuousSpellChecking(bool) |
| 404 { | 404 { |
| 405 } | 405 } |
| 406 | 406 |
| 407 bool WebRemoteFrameImpl::isContinuousSpellCheckingEnabled() const | 407 bool WebRemoteFrameImpl::isContinuousSpellCheckingEnabled() const |
| 408 { | 408 { |
| 409 return false; | 409 return false; |
| 410 } | 410 } |
| 411 | 411 |
| 412 void WebRemoteFrameImpl::requestTextChecking(const WebElement&) | 412 void WebRemoteFrameImpl::requestTextChecking(const WebElement&) |
| 413 { | 413 { |
| 414 ASSERT_NOT_REACHED(); | 414 NOTREACHED(); |
| 415 } | 415 } |
| 416 | 416 |
| 417 void WebRemoteFrameImpl::removeSpellingMarkers() | 417 void WebRemoteFrameImpl::removeSpellingMarkers() |
| 418 { | 418 { |
| 419 ASSERT_NOT_REACHED(); | 419 NOTREACHED(); |
| 420 } | 420 } |
| 421 | 421 |
| 422 bool WebRemoteFrameImpl::hasSelection() const | 422 bool WebRemoteFrameImpl::hasSelection() const |
| 423 { | 423 { |
| 424 ASSERT_NOT_REACHED(); | 424 NOTREACHED(); |
| 425 return false; | 425 return false; |
| 426 } | 426 } |
| 427 | 427 |
| 428 WebRange WebRemoteFrameImpl::selectionRange() const | 428 WebRange WebRemoteFrameImpl::selectionRange() const |
| 429 { | 429 { |
| 430 ASSERT_NOT_REACHED(); | 430 NOTREACHED(); |
| 431 return WebRange(); | 431 return WebRange(); |
| 432 } | 432 } |
| 433 | 433 |
| 434 WebString WebRemoteFrameImpl::selectionAsText() const | 434 WebString WebRemoteFrameImpl::selectionAsText() const |
| 435 { | 435 { |
| 436 ASSERT_NOT_REACHED(); | 436 NOTREACHED(); |
| 437 return WebString(); | 437 return WebString(); |
| 438 } | 438 } |
| 439 | 439 |
| 440 WebString WebRemoteFrameImpl::selectionAsMarkup() const | 440 WebString WebRemoteFrameImpl::selectionAsMarkup() const |
| 441 { | 441 { |
| 442 ASSERT_NOT_REACHED(); | 442 NOTREACHED(); |
| 443 return WebString(); | 443 return WebString(); |
| 444 } | 444 } |
| 445 | 445 |
| 446 bool WebRemoteFrameImpl::selectWordAroundCaret() | 446 bool WebRemoteFrameImpl::selectWordAroundCaret() |
| 447 { | 447 { |
| 448 ASSERT_NOT_REACHED(); | 448 NOTREACHED(); |
| 449 return false; | 449 return false; |
| 450 } | 450 } |
| 451 | 451 |
| 452 void WebRemoteFrameImpl::selectRange(const WebPoint& base, const WebPoint& exten
t) | 452 void WebRemoteFrameImpl::selectRange(const WebPoint& base, const WebPoint& exten
t) |
| 453 { | 453 { |
| 454 ASSERT_NOT_REACHED(); | 454 NOTREACHED(); |
| 455 } | 455 } |
| 456 | 456 |
| 457 void WebRemoteFrameImpl::selectRange(const WebRange&) | 457 void WebRemoteFrameImpl::selectRange(const WebRange&) |
| 458 { | 458 { |
| 459 ASSERT_NOT_REACHED(); | 459 NOTREACHED(); |
| 460 } | 460 } |
| 461 | 461 |
| 462 void WebRemoteFrameImpl::moveRangeSelection(const WebPoint& base, const WebPoint
& extent, WebFrame::TextGranularity granularity) | 462 void WebRemoteFrameImpl::moveRangeSelection(const WebPoint& base, const WebPoint
& extent, WebFrame::TextGranularity granularity) |
| 463 { | 463 { |
| 464 ASSERT_NOT_REACHED(); | 464 NOTREACHED(); |
| 465 } | 465 } |
| 466 | 466 |
| 467 void WebRemoteFrameImpl::moveCaretSelection(const WebPoint&) | 467 void WebRemoteFrameImpl::moveCaretSelection(const WebPoint&) |
| 468 { | 468 { |
| 469 ASSERT_NOT_REACHED(); | 469 NOTREACHED(); |
| 470 } | 470 } |
| 471 | 471 |
| 472 bool WebRemoteFrameImpl::setEditableSelectionOffsets(int start, int end) | 472 bool WebRemoteFrameImpl::setEditableSelectionOffsets(int start, int end) |
| 473 { | 473 { |
| 474 ASSERT_NOT_REACHED(); | 474 NOTREACHED(); |
| 475 return false; | 475 return false; |
| 476 } | 476 } |
| 477 | 477 |
| 478 bool WebRemoteFrameImpl::setCompositionFromExistingText(int compositionStart, in
t compositionEnd, const WebVector<WebCompositionUnderline>& underlines) | 478 bool WebRemoteFrameImpl::setCompositionFromExistingText(int compositionStart, in
t compositionEnd, const WebVector<WebCompositionUnderline>& underlines) |
| 479 { | 479 { |
| 480 ASSERT_NOT_REACHED(); | 480 NOTREACHED(); |
| 481 return false; | 481 return false; |
| 482 } | 482 } |
| 483 | 483 |
| 484 void WebRemoteFrameImpl::extendSelectionAndDelete(int before, int after) | 484 void WebRemoteFrameImpl::extendSelectionAndDelete(int before, int after) |
| 485 { | 485 { |
| 486 ASSERT_NOT_REACHED(); | 486 NOTREACHED(); |
| 487 } | 487 } |
| 488 | 488 |
| 489 void WebRemoteFrameImpl::setCaretVisible(bool) | 489 void WebRemoteFrameImpl::setCaretVisible(bool) |
| 490 { | 490 { |
| 491 ASSERT_NOT_REACHED(); | 491 NOTREACHED(); |
| 492 } | 492 } |
| 493 | 493 |
| 494 int WebRemoteFrameImpl::printBegin(const WebPrintParams&, const WebNode& constra
inToNode) | 494 int WebRemoteFrameImpl::printBegin(const WebPrintParams&, const WebNode& constra
inToNode) |
| 495 { | 495 { |
| 496 ASSERT_NOT_REACHED(); | 496 NOTREACHED(); |
| 497 return 0; | 497 return 0; |
| 498 } | 498 } |
| 499 | 499 |
| 500 float WebRemoteFrameImpl::printPage(int pageToPrint, WebCanvas*) | 500 float WebRemoteFrameImpl::printPage(int pageToPrint, WebCanvas*) |
| 501 { | 501 { |
| 502 ASSERT_NOT_REACHED(); | 502 NOTREACHED(); |
| 503 return 0.0; | 503 return 0.0; |
| 504 } | 504 } |
| 505 | 505 |
| 506 float WebRemoteFrameImpl::getPrintPageShrink(int page) | 506 float WebRemoteFrameImpl::getPrintPageShrink(int page) |
| 507 { | 507 { |
| 508 ASSERT_NOT_REACHED(); | 508 NOTREACHED(); |
| 509 return 0.0; | 509 return 0.0; |
| 510 } | 510 } |
| 511 | 511 |
| 512 void WebRemoteFrameImpl::printEnd() | 512 void WebRemoteFrameImpl::printEnd() |
| 513 { | 513 { |
| 514 ASSERT_NOT_REACHED(); | 514 NOTREACHED(); |
| 515 } | 515 } |
| 516 | 516 |
| 517 bool WebRemoteFrameImpl::isPrintScalingDisabledForPlugin(const WebNode&) | 517 bool WebRemoteFrameImpl::isPrintScalingDisabledForPlugin(const WebNode&) |
| 518 { | 518 { |
| 519 ASSERT_NOT_REACHED(); | 519 NOTREACHED(); |
| 520 return false; | 520 return false; |
| 521 } | 521 } |
| 522 | 522 |
| 523 bool WebRemoteFrameImpl::hasCustomPageSizeStyle(int pageIndex) | 523 bool WebRemoteFrameImpl::hasCustomPageSizeStyle(int pageIndex) |
| 524 { | 524 { |
| 525 ASSERT_NOT_REACHED(); | 525 NOTREACHED(); |
| 526 return false; | 526 return false; |
| 527 } | 527 } |
| 528 | 528 |
| 529 bool WebRemoteFrameImpl::isPageBoxVisible(int pageIndex) | 529 bool WebRemoteFrameImpl::isPageBoxVisible(int pageIndex) |
| 530 { | 530 { |
| 531 ASSERT_NOT_REACHED(); | 531 NOTREACHED(); |
| 532 return false; | 532 return false; |
| 533 } | 533 } |
| 534 | 534 |
| 535 void WebRemoteFrameImpl::pageSizeAndMarginsInPixels( | 535 void WebRemoteFrameImpl::pageSizeAndMarginsInPixels( |
| 536 int pageIndex, | 536 int pageIndex, |
| 537 WebSize& pageSize, | 537 WebSize& pageSize, |
| 538 int& marginTop, | 538 int& marginTop, |
| 539 int& marginRight, | 539 int& marginRight, |
| 540 int& marginBottom, | 540 int& marginBottom, |
| 541 int& marginLeft) | 541 int& marginLeft) |
| 542 { | 542 { |
| 543 ASSERT_NOT_REACHED(); | 543 NOTREACHED(); |
| 544 } | 544 } |
| 545 | 545 |
| 546 WebString WebRemoteFrameImpl::pageProperty(const WebString& propertyName, int pa
geIndex) | 546 WebString WebRemoteFrameImpl::pageProperty(const WebString& propertyName, int pa
geIndex) |
| 547 { | 547 { |
| 548 ASSERT_NOT_REACHED(); | 548 NOTREACHED(); |
| 549 return WebString(); | 549 return WebString(); |
| 550 } | 550 } |
| 551 | 551 |
| 552 void WebRemoteFrameImpl::printPagesWithBoundaries(WebCanvas*, const WebSize&) | 552 void WebRemoteFrameImpl::printPagesWithBoundaries(WebCanvas*, const WebSize&) |
| 553 { | 553 { |
| 554 ASSERT_NOT_REACHED(); | 554 NOTREACHED(); |
| 555 } | 555 } |
| 556 | 556 |
| 557 void WebRemoteFrameImpl::dispatchMessageEventWithOriginCheck( | 557 void WebRemoteFrameImpl::dispatchMessageEventWithOriginCheck( |
| 558 const WebSecurityOrigin& intendedTargetOrigin, | 558 const WebSecurityOrigin& intendedTargetOrigin, |
| 559 const WebDOMEvent&) | 559 const WebDOMEvent&) |
| 560 { | 560 { |
| 561 ASSERT_NOT_REACHED(); | 561 NOTREACHED(); |
| 562 } | 562 } |
| 563 | 563 |
| 564 WebRect WebRemoteFrameImpl::selectionBoundsRect() const | 564 WebRect WebRemoteFrameImpl::selectionBoundsRect() const |
| 565 { | 565 { |
| 566 ASSERT_NOT_REACHED(); | 566 NOTREACHED(); |
| 567 return WebRect(); | 567 return WebRect(); |
| 568 } | 568 } |
| 569 | 569 |
| 570 bool WebRemoteFrameImpl::selectionStartHasSpellingMarkerFor(int from, int length
) const | 570 bool WebRemoteFrameImpl::selectionStartHasSpellingMarkerFor(int from, int length
) const |
| 571 { | 571 { |
| 572 ASSERT_NOT_REACHED(); | 572 NOTREACHED(); |
| 573 return false; | 573 return false; |
| 574 } | 574 } |
| 575 | 575 |
| 576 WebString WebRemoteFrameImpl::layerTreeAsText(bool showDebugInfo) const | 576 WebString WebRemoteFrameImpl::layerTreeAsText(bool showDebugInfo) const |
| 577 { | 577 { |
| 578 ASSERT_NOT_REACHED(); | 578 NOTREACHED(); |
| 579 return WebString(); | 579 return WebString(); |
| 580 } | 580 } |
| 581 | 581 |
| 582 WebLocalFrame* WebRemoteFrameImpl::createLocalChild(WebTreeScopeType scope, cons
t WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags, We
bFrameClient* client, WebFrame* previousSibling, const WebFrameOwnerProperties&
frameOwnerProperties, WebFrame* opener) | 582 WebLocalFrame* WebRemoteFrameImpl::createLocalChild(WebTreeScopeType scope, cons
t WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags, We
bFrameClient* client, WebFrame* previousSibling, const WebFrameOwnerProperties&
frameOwnerProperties, WebFrame* opener) |
| 583 { | 583 { |
| 584 WebLocalFrameImpl* child = WebLocalFrameImpl::create(scope, client, opener); | 584 WebLocalFrameImpl* child = WebLocalFrameImpl::create(scope, client, opener); |
| 585 insertAfter(child, previousSibling); | 585 insertAfter(child, previousSibling); |
| 586 RemoteFrameOwner* owner = RemoteFrameOwner::create(static_cast<SandboxFlags>
(sandboxFlags), frameOwnerProperties); | 586 RemoteFrameOwner* owner = RemoteFrameOwner::create(static_cast<SandboxFlags>
(sandboxFlags), frameOwnerProperties); |
| 587 // FIXME: currently this calls LocalFrame::init() on the created LocalFrame,
which may | 587 // FIXME: currently this calls LocalFrame::init() on the created LocalFrame,
which may |
| 588 // result in the browser observing two navigations to about:blank (one from
the initial | 588 // result in the browser observing two navigations to about:blank (one from
the initial |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 : WebRemoteFrame(scope) | 712 : WebRemoteFrame(scope) |
| 713 , m_frameClient(RemoteFrameClientImpl::create(this)) | 713 , m_frameClient(RemoteFrameClientImpl::create(this)) |
| 714 , m_client(client) | 714 , m_client(client) |
| 715 #if ENABLE(OILPAN) | 715 #if ENABLE(OILPAN) |
| 716 , m_selfKeepAlive(this) | 716 , m_selfKeepAlive(this) |
| 717 #endif | 717 #endif |
| 718 { | 718 { |
| 719 } | 719 } |
| 720 | 720 |
| 721 } // namespace blink | 721 } // namespace blink |
| OLD | NEW |