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

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1416123002: Absolute Device Orientation API: blink implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "core/input/EventHandler.h" 46 #include "core/input/EventHandler.h"
47 #include "core/layout/HitTestResult.h" 47 #include "core/layout/HitTestResult.h"
48 #include "core/loader/DocumentLoader.h" 48 #include "core/loader/DocumentLoader.h"
49 #include "core/loader/FrameLoadRequest.h" 49 #include "core/loader/FrameLoadRequest.h"
50 #include "core/loader/FrameLoader.h" 50 #include "core/loader/FrameLoader.h"
51 #include "core/loader/HistoryItem.h" 51 #include "core/loader/HistoryItem.h"
52 #include "core/page/Page.h" 52 #include "core/page/Page.h"
53 #include "core/page/WindowFeatures.h" 53 #include "core/page/WindowFeatures.h"
54 #include "modules/device_light/DeviceLightController.h" 54 #include "modules/device_light/DeviceLightController.h"
55 #include "modules/device_orientation/DeviceMotionController.h" 55 #include "modules/device_orientation/DeviceMotionController.h"
56 #include "modules/device_orientation/DeviceOrientationAbsoluteController.h"
56 #include "modules/device_orientation/DeviceOrientationController.h" 57 #include "modules/device_orientation/DeviceOrientationController.h"
57 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" 58 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h"
58 #include "modules/gamepad/NavigatorGamepad.h" 59 #include "modules/gamepad/NavigatorGamepad.h"
59 #include "modules/mediasession/MediaSession.h" 60 #include "modules/mediasession/MediaSession.h"
60 #include "modules/serviceworkers/NavigatorServiceWorker.h" 61 #include "modules/serviceworkers/NavigatorServiceWorker.h"
61 #include "modules/storage/DOMWindowStorageController.h" 62 #include "modules/storage/DOMWindowStorageController.h"
62 #include "modules/vr/NavigatorVRDevice.h" 63 #include "modules/vr/NavigatorVRDevice.h"
63 #include "platform/MIMETypeRegistry.h" 64 #include "platform/MIMETypeRegistry.h"
64 #include "platform/RuntimeEnabledFeatures.h" 65 #include "platform/RuntimeEnabledFeatures.h"
65 #include "platform/UserGestureIndicator.h" 66 #include "platform/UserGestureIndicator.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 132 }
132 133
133 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() 134 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld()
134 { 135 {
135 if (m_webFrame->client()) { 136 if (m_webFrame->client()) {
136 m_webFrame->client()->didClearWindowObject(m_webFrame); 137 m_webFrame->client()->didClearWindowObject(m_webFrame);
137 Document* document = m_webFrame->frame()->document(); 138 Document* document = m_webFrame->frame()->document();
138 if (document) { 139 if (document) {
139 DeviceMotionController::from(*document); 140 DeviceMotionController::from(*document);
140 DeviceOrientationController::from(*document); 141 DeviceOrientationController::from(*document);
142 DeviceOrientationAbsoluteController::from(*document);
141 if (RuntimeEnabledFeatures::deviceLightEnabled()) 143 if (RuntimeEnabledFeatures::deviceLightEnabled())
142 DeviceLightController::from(*document); 144 DeviceLightController::from(*document);
143 NavigatorGamepad::from(*document); 145 NavigatorGamepad::from(*document);
144 NavigatorServiceWorker::from(*document); 146 NavigatorServiceWorker::from(*document);
145 DOMWindowStorageController::from(*document); 147 DOMWindowStorageController::from(*document);
146 if (RuntimeEnabledFeatures::webVREnabled()) 148 if (RuntimeEnabledFeatures::webVREnabled())
147 NavigatorVRDevice::from(*document); 149 NavigatorVRDevice::from(*document);
148 } 150 }
149 } 151 }
150 // FIXME: when extensions go out of process, this whole concept stops workin g. 152 // FIXME: when extensions go out of process, this whole concept stops workin g.
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 966
965 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 967 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
966 { 968 {
967 if (m_webFrame->client()) { 969 if (m_webFrame->client()) {
968 m_webFrame->client()->suddenTerminationDisablerChanged( 970 m_webFrame->client()->suddenTerminationDisablerChanged(
969 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 971 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
970 } 972 }
971 } 973 }
972 974
973 } // namespace blink 975 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698