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

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

Issue 256843004: Get the WebGeolocationClient from WebFrameClient instead of WebViewClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix linking errors Created 6 years, 6 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "core/page/PointerLockController.h" 75 #include "core/page/PointerLockController.h"
76 #include "core/page/ScopedPageLoadDeferrer.h" 76 #include "core/page/ScopedPageLoadDeferrer.h"
77 #include "core/page/TouchDisambiguation.h" 77 #include "core/page/TouchDisambiguation.h"
78 #include "core/rendering/FastTextAutosizer.h" 78 #include "core/rendering/FastTextAutosizer.h"
79 #include "core/rendering/RenderView.h" 79 #include "core/rendering/RenderView.h"
80 #include "core/rendering/RenderWidget.h" 80 #include "core/rendering/RenderWidget.h"
81 #include "core/rendering/TextAutosizer.h" 81 #include "core/rendering/TextAutosizer.h"
82 #include "core/rendering/compositing/RenderLayerCompositor.h" 82 #include "core/rendering/compositing/RenderLayerCompositor.h"
83 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" 83 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h"
84 #include "modules/encryptedmedia/MediaKeysController.h" 84 #include "modules/encryptedmedia/MediaKeysController.h"
85 #include "modules/geolocation/GeolocationController.h"
86 #include "modules/indexeddb/InspectorIndexedDBAgent.h" 85 #include "modules/indexeddb/InspectorIndexedDBAgent.h"
87 #include "modules/push_messaging/PushController.h" 86 #include "modules/push_messaging/PushController.h"
88 #include "platform/ContextMenu.h" 87 #include "platform/ContextMenu.h"
89 #include "platform/ContextMenuItem.h" 88 #include "platform/ContextMenuItem.h"
90 #include "platform/Cursor.h" 89 #include "platform/Cursor.h"
91 #include "platform/KeyboardCodes.h" 90 #include "platform/KeyboardCodes.h"
92 #include "platform/NotImplemented.h" 91 #include "platform/NotImplemented.h"
93 #include "platform/OverscrollTheme.h" 92 #include "platform/OverscrollTheme.h"
94 #include "platform/PlatformGestureEvent.h" 93 #include "platform/PlatformGestureEvent.h"
95 #include "platform/PlatformKeyboardEvent.h" 94 #include "platform/PlatformKeyboardEvent.h"
(...skipping 27 matching lines...) Expand all
123 #include "public/web/WebPlugin.h" 122 #include "public/web/WebPlugin.h"
124 #include "public/web/WebPluginAction.h" 123 #include "public/web/WebPluginAction.h"
125 #include "public/web/WebRange.h" 124 #include "public/web/WebRange.h"
126 #include "public/web/WebTextInputInfo.h" 125 #include "public/web/WebTextInputInfo.h"
127 #include "public/web/WebViewClient.h" 126 #include "public/web/WebViewClient.h"
128 #include "public/web/WebWindowFeatures.h" 127 #include "public/web/WebWindowFeatures.h"
129 #include "web/CompositionUnderlineVectorBuilder.h" 128 #include "web/CompositionUnderlineVectorBuilder.h"
130 #include "web/ContextFeaturesClientImpl.h" 129 #include "web/ContextFeaturesClientImpl.h"
131 #include "web/DatabaseClientImpl.h" 130 #include "web/DatabaseClientImpl.h"
132 #include "web/FullscreenController.h" 131 #include "web/FullscreenController.h"
133 #include "web/GeolocationClientProxy.h"
134 #include "web/GraphicsLayerFactoryChromium.h" 132 #include "web/GraphicsLayerFactoryChromium.h"
135 #include "web/LinkHighlight.h" 133 #include "web/LinkHighlight.h"
136 #include "web/LocalFileSystemClient.h" 134 #include "web/LocalFileSystemClient.h"
137 #include "web/MIDIClientProxy.h" 135 #include "web/MIDIClientProxy.h"
138 #include "web/PopupContainer.h" 136 #include "web/PopupContainer.h"
139 #include "web/PrerendererClientImpl.h" 137 #include "web/PrerendererClientImpl.h"
140 #include "web/SpeechRecognitionClientProxy.h" 138 #include "web/SpeechRecognitionClientProxy.h"
141 #include "web/StorageQuotaClientImpl.h" 139 #include "web/StorageQuotaClientImpl.h"
142 #include "web/ValidationMessageClientImpl.h" 140 #include "web/ValidationMessageClientImpl.h"
143 #include "web/ViewportAnchor.h" 141 #include "web/ViewportAnchor.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 , m_tabsToLinks(false) 377 , m_tabsToLinks(false)
380 , m_layerTreeView(0) 378 , m_layerTreeView(0)
381 , m_rootLayer(0) 379 , m_rootLayer(0)
382 , m_rootGraphicsLayer(0) 380 , m_rootGraphicsLayer(0)
383 , m_rootTransformLayer(0) 381 , m_rootTransformLayer(0)
384 , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium(this))) 382 , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium(this)))
385 , m_isAcceleratedCompositingActive(false) 383 , m_isAcceleratedCompositingActive(false)
386 , m_layerTreeViewCommitsDeferred(false) 384 , m_layerTreeViewCommitsDeferred(false)
387 , m_matchesHeuristicsForGpuRasterization(false) 385 , m_matchesHeuristicsForGpuRasterization(false)
388 , m_recreatingGraphicsContext(false) 386 , m_recreatingGraphicsContext(false)
389 , m_geolocationClientProxy(adoptPtr(new GeolocationClientProxy(client ? clie nt->geolocationClient() : 0)))
390 , m_flingModifier(0) 387 , m_flingModifier(0)
391 , m_flingSourceDevice(false) 388 , m_flingSourceDevice(false)
392 , m_fullscreenController(FullscreenController::create(this)) 389 , m_fullscreenController(FullscreenController::create(this))
393 , m_showFPSCounter(false) 390 , m_showFPSCounter(false)
394 , m_showPaintRects(false) 391 , m_showPaintRects(false)
395 , m_showDebugBorders(false) 392 , m_showDebugBorders(false)
396 , m_continuousPaintingEnabled(false) 393 , m_continuousPaintingEnabled(false)
397 , m_showScrollBottleneckRects(false) 394 , m_showScrollBottleneckRects(false)
398 , m_baseBackgroundColor(Color::white) 395 , m_baseBackgroundColor(Color::white)
399 , m_backgroundColorOverride(Color::transparent) 396 , m_backgroundColorOverride(Color::transparent)
(...skipping 11 matching lines...) Expand all
411 pageClients.storageClient = &m_storageClientImpl; 408 pageClients.storageClient = &m_storageClientImpl;
412 409
413 m_page = adoptPtrWillBeNoop(new Page(pageClients)); 410 m_page = adoptPtrWillBeNoop(new Page(pageClients));
414 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); 411 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl);
415 provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClien t() : 0)); 412 provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClien t() : 0));
416 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli ent ? client->speechRecognizer() : 0)); 413 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli ent ? client->speechRecognizer() : 0));
417 provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::cre ate(this)); 414 provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::cre ate(this));
418 415
419 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); 416 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create());
420 DeviceOrientationInspectorAgent::provideTo(*m_page); 417 DeviceOrientationInspectorAgent::provideTo(*m_page);
421 provideGeolocationTo(*m_page, m_geolocationClientProxy.get());
422 m_geolocationClientProxy->setController(GeolocationController::from(m_page.g et()));
423 418
424 provideLocalFileSystemTo(*m_page, LocalFileSystemClient::create()); 419 provideLocalFileSystemTo(*m_page, LocalFileSystemClient::create());
425 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); 420 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create());
426 InspectorIndexedDBAgent::provideTo(m_page.get()); 421 InspectorIndexedDBAgent::provideTo(m_page.get());
427 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); 422 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create());
428 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this )); 423 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this ));
429 provideWorkerGlobalScopeProxyProviderTo(*m_page, WorkerGlobalScopeProxyProvi derImpl::create()); 424 provideWorkerGlobalScopeProxyProviderTo(*m_page, WorkerGlobalScopeProxyProvi derImpl::create());
430 425
431 m_page->makeOrdinary(); 426 m_page->makeOrdinary();
432 427
(...skipping 3618 matching lines...) Expand 10 before | Expand all | Expand 10 after
4051 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4046 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4052 4047
4053 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) 4048 if (!mainFrameImpl() || !mainFrameImpl()->frameView())
4054 return false; 4049 return false;
4055 4050
4056 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4051 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4057 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4052 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4058 } 4053 }
4059 4054
4060 } // namespace blink 4055 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698