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

Side by Side Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/device_orientation/DeviceOrientationController.h" 5 #include "modules/device_orientation/DeviceOrientationController.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/frame/Deprecation.h" 8 #include "core/frame/Deprecation.h"
9 #include "core/frame/HostsUsingFeatures.h" 9 #include "core/frame/HostsUsingFeatures.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 if (document().frame()) { 54 if (document().frame()) {
55 if (document().isSecureContext()) { 55 if (document().isSecureContext()) {
56 UseCounter::count(document().frame(), 56 UseCounter::count(document().frame(),
57 UseCounter::DeviceOrientationSecureOrigin); 57 UseCounter::DeviceOrientationSecureOrigin);
58 } else { 58 } else {
59 Deprecation::countDeprecation( 59 Deprecation::countDeprecation(
60 document().frame(), UseCounter::DeviceOrientationInsecureOrigin); 60 document().frame(), UseCounter::DeviceOrientationInsecureOrigin);
61 HostsUsingFeatures::countAnyWorld( 61 HostsUsingFeatures::countAnyWorld(
62 document(), 62 document(),
63 HostsUsingFeatures::Feature::DeviceOrientationInsecureHost); 63 HostsUsingFeatures::Feature::DeviceOrientationInsecureHost);
64 if (document().frame()->settings()->strictPowerfulFeatureRestrictions()) 64 if (document()
65 .frame()
66 ->settings()
67 ->getStrictPowerfulFeatureRestrictions())
65 return; 68 return;
66 } 69 }
67 } 70 }
68 71
69 if (!m_hasEventListener) 72 if (!m_hasEventListener)
70 Platform::current()->recordRapporURL("DeviceSensors.DeviceOrientation", 73 Platform::current()->recordRapporURL("DeviceSensors.DeviceOrientation",
71 WebURL(document().url())); 74 WebURL(document().url()));
72 75
73 DeviceSingleWindowEventController::didAddEventListener(window, eventType); 76 DeviceSingleWindowEventController::didAddEventListener(window, eventType);
74 } 77 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 return DeviceOrientationDispatcher::instance(false); 127 return DeviceOrientationDispatcher::instance(false);
125 } 128 }
126 129
127 DEFINE_TRACE(DeviceOrientationController) { 130 DEFINE_TRACE(DeviceOrientationController) {
128 visitor->trace(m_overrideOrientationData); 131 visitor->trace(m_overrideOrientationData);
129 DeviceSingleWindowEventController::trace(visitor); 132 DeviceSingleWindowEventController::trace(visitor);
130 Supplement<Document>::trace(visitor); 133 Supplement<Document>::trace(visitor);
131 } 134 }
132 135
133 } // namespace blink 136 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698