Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1394)

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 224113006: Apply OwnPtr|PassOwnPtr to member variables and arguments in ContextFeatures. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698