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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 169403006: Screen Orientation API: screen.orientation & orientationchange event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index d676350288dcd94120d5475b78d57eee486f2a4a..4809a9ec0ba833b47440d3733e8201dd9b5736ab 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -46,6 +46,7 @@
#include "PopupContainer.h"
#include "PrerendererClientImpl.h"
#include "RuntimeEnabledFeatures.h"
+#include "ScreenOrientationClientProxy.h"
#include "SpeechInputClientImpl.h"
#include "SpeechRecognitionClientProxy.h"
#include "StorageQuotaClientImpl.h"
@@ -123,6 +124,7 @@
#include "modules/geolocation/GeolocationController.h"
#include "modules/indexeddb/InspectorIndexedDBAgent.h"
#include "modules/notifications/NotificationController.h"
+#include "modules/screen_orientation/ScreenOrientationController.h"
#include "painting/ContinuousPainter.h"
#include "platform/ContextMenu.h"
#include "platform/ContextMenuItem.h"
@@ -367,6 +369,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
#endif
, m_speechRecognitionClient(SpeechRecognitionClientProxy::create(client ? client->speechRecognizer() : 0))
, m_geolocationClientProxy(adoptPtr(new GeolocationClientProxy(client ? client->geolocationClient() : 0)))
+ , m_screenOrientationClientProxy(ScreenOrientationClientProxy::create(client ? client->screenOrientationClient() : 0))
, m_userMediaClientImpl(this)
, m_midiClientProxy(adoptPtr(new MIDIClientProxy(client ? client->webMIDIClient() : 0)))
, m_navigatorContentUtilsClient(NavigatorContentUtilsClientImpl::create(this))
@@ -408,6 +411,8 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
DeviceOrientationInspectorAgent::provideTo(m_page.get());
provideGeolocationTo(m_page.get(), m_geolocationClientProxy.get());
m_geolocationClientProxy->setController(GeolocationController::from(m_page.get()));
+ m_screenOrientationClientProxy->setController(ScreenOrientationController::from(m_page.get()));
+ provideScreenOrientationTo(m_page.get());
mlamouri (slow - plz ping) 2014/02/18 17:08:55 You probably want to call |provideScreenOrientatio
provideLocalFileSystemTo(m_page.get(), LocalFileSystemClient::create());
provideDatabaseClientTo(m_page.get(), DatabaseClientImpl::create());
« Source/web/WebViewImpl.h ('K') | « Source/web/WebViewImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698