| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 , m_fakePageScaleAnimationUseAnchor(false) | 341 , m_fakePageScaleAnimationUseAnchor(false) |
| 342 , m_contextMenuAllowed(false) | 342 , m_contextMenuAllowed(false) |
| 343 , m_doingDragAndDrop(false) | 343 , m_doingDragAndDrop(false) |
| 344 , m_ignoreInputEvents(false) | 344 , m_ignoreInputEvents(false) |
| 345 , m_compositorDeviceScaleFactorOverride(0) | 345 , m_compositorDeviceScaleFactorOverride(0) |
| 346 , m_rootLayerScale(1) | 346 , m_rootLayerScale(1) |
| 347 , m_suppressNextKeypressEvent(false) | 347 , m_suppressNextKeypressEvent(false) |
| 348 , m_imeAcceptEvents(true) | 348 , m_imeAcceptEvents(true) |
| 349 , m_operationsAllowed(WebDragOperationNone) | 349 , m_operationsAllowed(WebDragOperationNone) |
| 350 , m_dragOperation(WebDragOperationNone) | 350 , m_dragOperation(WebDragOperationNone) |
| 351 , m_featureSwitchClient(adoptPtr(new ContextFeaturesClientImpl())) | |
| 352 , m_isTransparent(false) | 351 , m_isTransparent(false) |
| 353 , m_tabsToLinks(false) | 352 , m_tabsToLinks(false) |
| 354 , m_layerTreeView(0) | 353 , m_layerTreeView(0) |
| 355 , m_rootLayer(0) | 354 , m_rootLayer(0) |
| 356 , m_rootGraphicsLayer(0) | 355 , m_rootGraphicsLayer(0) |
| 357 , m_rootTransformLayer(0) | 356 , m_rootTransformLayer(0) |
| 358 , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium(this))) | 357 , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium(this))) |
| 359 , m_isAcceleratedCompositingActive(false) | 358 , m_isAcceleratedCompositingActive(false) |
| 360 , m_layerTreeViewCommitsDeferred(false) | 359 , m_layerTreeViewCommitsDeferred(false) |
| 361 , m_compositorCreationFailed(false) | 360 , m_compositorCreationFailed(false) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 388 provideUserMediaTo(*m_page, &m_userMediaClientImpl); | 387 provideUserMediaTo(*m_page, &m_userMediaClientImpl); |
| 389 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); | 388 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); |
| 390 provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClien
t() : 0)); | 389 provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClien
t() : 0)); |
| 391 #if ENABLE(INPUT_SPEECH) | 390 #if ENABLE(INPUT_SPEECH) |
| 392 provideSpeechInputTo(*m_page, SpeechInputClientImpl::create(client)); | 391 provideSpeechInputTo(*m_page, SpeechInputClientImpl::create(client)); |
| 393 #endif | 392 #endif |
| 394 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : 0)); | 393 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : 0)); |
| 395 provideNotification(*m_page, notificationPresenterImpl()); | 394 provideNotification(*m_page, notificationPresenterImpl()); |
| 396 provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::cre
ate(this)); | 395 provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::cre
ate(this)); |
| 397 | 396 |
| 398 provideContextFeaturesTo(*m_page, m_featureSwitchClient.get()); | 397 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); |
| 399 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) | 398 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) |
| 400 DeviceOrientationInspectorAgent::provideTo(*m_page); | 399 DeviceOrientationInspectorAgent::provideTo(*m_page); |
| 401 provideGeolocationTo(*m_page, m_geolocationClientProxy.get()); | 400 provideGeolocationTo(*m_page, m_geolocationClientProxy.get()); |
| 402 m_geolocationClientProxy->setController(GeolocationController::from(m_page.g
et())); | 401 m_geolocationClientProxy->setController(GeolocationController::from(m_page.g
et())); |
| 403 | 402 |
| 404 provideLocalFileSystemTo(*m_page, LocalFileSystemClient::create()); | 403 provideLocalFileSystemTo(*m_page, LocalFileSystemClient::create()); |
| 405 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); | 404 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); |
| 406 InspectorIndexedDBAgent::provideTo(m_page.get()); | 405 InspectorIndexedDBAgent::provideTo(m_page.get()); |
| 407 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); | 406 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); |
| 408 m_validationMessage = ValidationMessageClientImpl::create(*this); | 407 m_validationMessage = ValidationMessageClientImpl::create(*this); |
| (...skipping 3572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3981 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 3980 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
| 3982 | 3981 |
| 3983 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 3982 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
| 3984 return false; | 3983 return false; |
| 3985 | 3984 |
| 3986 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 3985 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
| 3987 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 3986 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
| 3988 } | 3987 } |
| 3989 | 3988 |
| 3990 } // namespace blink | 3989 } // namespace blink |
| OLD | NEW |