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

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

Issue 315693002: Use WebViewClient instead of BlinkPlatform for screen lock. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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) 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "core/loader/HistoryItem.h" 50 #include "core/loader/HistoryItem.h"
51 #include "core/page/Chrome.h" 51 #include "core/page/Chrome.h"
52 #include "core/page/EventHandler.h" 52 #include "core/page/EventHandler.h"
53 #include "core/page/Page.h" 53 #include "core/page/Page.h"
54 #include "core/page/WindowFeatures.h" 54 #include "core/page/WindowFeatures.h"
55 #include "core/rendering/HitTestResult.h" 55 #include "core/rendering/HitTestResult.h"
56 #include "modules/device_light/DeviceLightController.h" 56 #include "modules/device_light/DeviceLightController.h"
57 #include "modules/device_orientation/DeviceMotionController.h" 57 #include "modules/device_orientation/DeviceMotionController.h"
58 #include "modules/device_orientation/DeviceOrientationController.h" 58 #include "modules/device_orientation/DeviceOrientationController.h"
59 #include "modules/gamepad/NavigatorGamepad.h" 59 #include "modules/gamepad/NavigatorGamepad.h"
60 #include "modules/screen_orientation/ScreenOrientationController.h"
61 #include "modules/serviceworkers/NavigatorServiceWorker.h" 60 #include "modules/serviceworkers/NavigatorServiceWorker.h"
62 #include "platform/MIMETypeRegistry.h" 61 #include "platform/MIMETypeRegistry.h"
63 #include "platform/UserGestureIndicator.h" 62 #include "platform/UserGestureIndicator.h"
64 #include "platform/exported/WrappedResourceRequest.h" 63 #include "platform/exported/WrappedResourceRequest.h"
65 #include "platform/exported/WrappedResourceResponse.h" 64 #include "platform/exported/WrappedResourceResponse.h"
66 #include "platform/network/HTTPParsers.h" 65 #include "platform/network/HTTPParsers.h"
67 #include "platform/network/SocketStreamHandleInternal.h" 66 #include "platform/network/SocketStreamHandleInternal.h"
68 #include "platform/plugins/PluginData.h" 67 #include "platform/plugins/PluginData.h"
69 #include "public/platform/Platform.h" 68 #include "public/platform/Platform.h"
70 #include "public/platform/WebApplicationCacheHost.h" 69 #include "public/platform/WebApplicationCacheHost.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 { 117 {
119 if (m_webFrame->client()) { 118 if (m_webFrame->client()) {
120 m_webFrame->client()->didClearWindowObject(m_webFrame); 119 m_webFrame->client()->didClearWindowObject(m_webFrame);
121 Document* document = m_webFrame->frame()->document(); 120 Document* document = m_webFrame->frame()->document();
122 if (document) { 121 if (document) {
123 WheelController::from(*document); 122 WheelController::from(*document);
124 DeviceMotionController::from(*document); 123 DeviceMotionController::from(*document);
125 DeviceOrientationController::from(*document); 124 DeviceOrientationController::from(*document);
126 if (RuntimeEnabledFeatures::deviceLightEnabled()) 125 if (RuntimeEnabledFeatures::deviceLightEnabled())
127 DeviceLightController::from(*document); 126 DeviceLightController::from(*document);
128 if (RuntimeEnabledFeatures::screenOrientationEnabled())
129 ScreenOrientationController::from(*document);
130 if (RuntimeEnabledFeatures::gamepadEnabled()) 127 if (RuntimeEnabledFeatures::gamepadEnabled())
131 NavigatorGamepad::from(*document); 128 NavigatorGamepad::from(*document);
132 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) 129 if (RuntimeEnabledFeatures::serviceWorkerEnabled())
133 NavigatorServiceWorker::from(*document); 130 NavigatorServiceWorker::from(*document);
134 } 131 }
135 } 132 }
136 } 133 }
137 134
138 void FrameLoaderClientImpl::documentElementAvailable() 135 void FrameLoaderClientImpl::documentElementAvailable()
139 { 136 {
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 m_webFrame->client()->didAbortLoading(m_webFrame); 805 m_webFrame->client()->didAbortLoading(m_webFrame);
809 } 806 }
810 807
811 void FrameLoaderClientImpl::dispatchDidChangeManifest() 808 void FrameLoaderClientImpl::dispatchDidChangeManifest()
812 { 809 {
813 if (m_webFrame->client()) 810 if (m_webFrame->client())
814 m_webFrame->client()->didChangeManifest(m_webFrame); 811 m_webFrame->client()->didChangeManifest(m_webFrame);
815 } 812 }
816 813
817 } // namespace blink 814 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698