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

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

Issue 200783002: Gamepad API: add support for gamepadconnected and gamepaddisconnected events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: layout fix: webexposed/global-constructors-listing Created 6 years, 9 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/modules/modules.gypi ('k') | public/platform/Platform.h » ('j') | 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) 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #include "core/loader/ProgressTracker.h" 67 #include "core/loader/ProgressTracker.h"
68 #include "core/page/Chrome.h" 68 #include "core/page/Chrome.h"
69 #include "core/page/EventHandler.h" 69 #include "core/page/EventHandler.h"
70 #include "core/frame/FrameView.h" 70 #include "core/frame/FrameView.h"
71 #include "core/page/Page.h" 71 #include "core/page/Page.h"
72 #include "core/frame/Settings.h" 72 #include "core/frame/Settings.h"
73 #include "core/page/WindowFeatures.h" 73 #include "core/page/WindowFeatures.h"
74 #include "core/rendering/HitTestResult.h" 74 #include "core/rendering/HitTestResult.h"
75 #include "modules/device_orientation/DeviceMotionController.h" 75 #include "modules/device_orientation/DeviceMotionController.h"
76 #include "modules/device_orientation/DeviceOrientationController.h" 76 #include "modules/device_orientation/DeviceOrientationController.h"
77 #include "modules/gamepad/NavigatorGamepad.h"
77 #include "modules/screen_orientation/ScreenOrientationController.h" 78 #include "modules/screen_orientation/ScreenOrientationController.h"
78 #include "platform/MIMETypeRegistry.h" 79 #include "platform/MIMETypeRegistry.h"
79 #include "platform/UserGestureIndicator.h" 80 #include "platform/UserGestureIndicator.h"
80 #include "platform/exported/WrappedResourceRequest.h" 81 #include "platform/exported/WrappedResourceRequest.h"
81 #include "platform/exported/WrappedResourceResponse.h" 82 #include "platform/exported/WrappedResourceResponse.h"
82 #include "platform/network/HTTPParsers.h" 83 #include "platform/network/HTTPParsers.h"
83 #include "platform/network/SocketStreamHandleInternal.h" 84 #include "platform/network/SocketStreamHandleInternal.h"
84 #include "platform/plugins/PluginData.h" 85 #include "platform/plugins/PluginData.h"
85 #include "public/platform/Platform.h" 86 #include "public/platform/Platform.h"
86 #include "public/platform/WebApplicationCacheHost.h" 87 #include "public/platform/WebApplicationCacheHost.h"
(...skipping 29 matching lines...) Expand all
116 m_webFrame->client()->didClearWindowObject(m_webFrame, world->worldId()) ; 117 m_webFrame->client()->didClearWindowObject(m_webFrame, world->worldId()) ;
117 Document* document = m_webFrame->frame()->document(); 118 Document* document = m_webFrame->frame()->document();
118 if (document) { 119 if (document) {
119 WheelController::from(*document); 120 WheelController::from(*document);
120 if (RuntimeEnabledFeatures::deviceMotionEnabled()) 121 if (RuntimeEnabledFeatures::deviceMotionEnabled())
121 DeviceMotionController::from(*document); 122 DeviceMotionController::from(*document);
122 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) 123 if (RuntimeEnabledFeatures::deviceOrientationEnabled())
123 DeviceOrientationController::from(*document); 124 DeviceOrientationController::from(*document);
124 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 125 if (RuntimeEnabledFeatures::screenOrientationEnabled())
125 ScreenOrientationController::from(*document); 126 ScreenOrientationController::from(*document);
127 if (RuntimeEnabledFeatures::gamepadEnabled())
128 NavigatorGamepad::from(*document);
126 } 129 }
127 } 130 }
128 } 131 }
129 132
130 void FrameLoaderClientImpl::documentElementAvailable() 133 void FrameLoaderClientImpl::documentElementAvailable()
131 { 134 {
132 if (m_webFrame->client()) 135 if (m_webFrame->client())
133 m_webFrame->client()->didCreateDocumentElement(m_webFrame); 136 m_webFrame->client()->didCreateDocumentElement(m_webFrame);
134 } 137 }
135 138
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client)); 801 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client));
799 } 802 }
800 803
801 void FrameLoaderClientImpl::didStopAllLoaders() 804 void FrameLoaderClientImpl::didStopAllLoaders()
802 { 805 {
803 if (m_webFrame->client()) 806 if (m_webFrame->client())
804 m_webFrame->client()->didAbortLoading(m_webFrame); 807 m_webFrame->client()->didAbortLoading(m_webFrame);
805 } 808 }
806 809
807 } // namespace blink 810 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698