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

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

Issue 169403006: Screen Orientation API: screen.orientation & orientationchange event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits 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 unified diff | Download patch | Annotate | Revision Log
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "core/loader/ProgressTracker.h" 69 #include "core/loader/ProgressTracker.h"
70 #include "core/page/Chrome.h" 70 #include "core/page/Chrome.h"
71 #include "core/page/EventHandler.h" 71 #include "core/page/EventHandler.h"
72 #include "core/frame/FrameView.h" 72 #include "core/frame/FrameView.h"
73 #include "core/page/Page.h" 73 #include "core/page/Page.h"
74 #include "core/frame/Settings.h" 74 #include "core/frame/Settings.h"
75 #include "core/page/WindowFeatures.h" 75 #include "core/page/WindowFeatures.h"
76 #include "core/rendering/HitTestResult.h" 76 #include "core/rendering/HitTestResult.h"
77 #include "modules/device_orientation/DeviceMotionController.h" 77 #include "modules/device_orientation/DeviceMotionController.h"
78 #include "modules/device_orientation/DeviceOrientationController.h" 78 #include "modules/device_orientation/DeviceOrientationController.h"
79 #include "modules/screen_orientation/ScreenOrientationController.h"
79 #include "platform/MIMETypeRegistry.h" 80 #include "platform/MIMETypeRegistry.h"
80 #include "platform/UserGestureIndicator.h" 81 #include "platform/UserGestureIndicator.h"
81 #include "platform/exported/WrappedResourceRequest.h" 82 #include "platform/exported/WrappedResourceRequest.h"
82 #include "platform/exported/WrappedResourceResponse.h" 83 #include "platform/exported/WrappedResourceResponse.h"
83 #include "platform/network/HTTPParsers.h" 84 #include "platform/network/HTTPParsers.h"
84 #include "platform/network/SocketStreamHandleInternal.h" 85 #include "platform/network/SocketStreamHandleInternal.h"
85 #include "platform/plugins/PluginData.h" 86 #include "platform/plugins/PluginData.h"
86 #include "public/platform/Platform.h" 87 #include "public/platform/Platform.h"
87 #include "public/platform/WebApplicationCacheHost.h" 88 #include "public/platform/WebApplicationCacheHost.h"
88 #include "public/platform/WebMimeRegistry.h" 89 #include "public/platform/WebMimeRegistry.h"
(...skipping 26 matching lines...) Expand all
115 { 116 {
116 if (m_webFrame->client()) { 117 if (m_webFrame->client()) {
117 m_webFrame->client()->didClearWindowObject(m_webFrame, world->worldId()) ; 118 m_webFrame->client()->didClearWindowObject(m_webFrame, world->worldId()) ;
118 Document* document = m_webFrame->frame()->document(); 119 Document* document = m_webFrame->frame()->document();
119 if (document) { 120 if (document) {
120 WheelController::from(document); 121 WheelController::from(document);
121 if (RuntimeEnabledFeatures::deviceMotionEnabled()) 122 if (RuntimeEnabledFeatures::deviceMotionEnabled())
122 DeviceMotionController::from(document); 123 DeviceMotionController::from(document);
123 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) 124 if (RuntimeEnabledFeatures::deviceOrientationEnabled())
124 DeviceOrientationController::from(document); 125 DeviceOrientationController::from(document);
126 if (RuntimeEnabledFeatures::screenOrientationEnabled())
127 ScreenOrientationController::from(document);
125 } 128 }
126 } 129 }
127 } 130 }
128 131
129 void FrameLoaderClientImpl::documentElementAvailable() 132 void FrameLoaderClientImpl::documentElementAvailable()
130 { 133 {
131 if (m_webFrame->client()) 134 if (m_webFrame->client())
132 m_webFrame->client()->didCreateDocumentElement(m_webFrame); 135 m_webFrame->client()->didCreateDocumentElement(m_webFrame);
133 } 136 }
134 137
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client)); 792 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client));
790 } 793 }
791 794
792 void FrameLoaderClientImpl::didStopAllLoaders() 795 void FrameLoaderClientImpl::didStopAllLoaders()
793 { 796 {
794 if (m_webFrame->client()) 797 if (m_webFrame->client())
795 m_webFrame->client()->didAbortLoading(m_webFrame); 798 m_webFrame->client()->didAbortLoading(m_webFrame);
796 } 799 }
797 800
798 } // namespace blink 801 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp ('k') | public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698