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

Side by Side Diff: Source/modules/device_orientation/DeviceOrientationData.cpp

Issue 464353002: Cleanup blink:: prefix usage in Source/core/modules/[battery/*.cpp to indexeddb/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 21 matching lines...) Expand all
32 PassRefPtrWillBeRawPtr<DeviceOrientationData> DeviceOrientationData::create() 32 PassRefPtrWillBeRawPtr<DeviceOrientationData> DeviceOrientationData::create()
33 { 33 {
34 return adoptRefWillBeNoop(new DeviceOrientationData); 34 return adoptRefWillBeNoop(new DeviceOrientationData);
35 } 35 }
36 36
37 PassRefPtrWillBeRawPtr<DeviceOrientationData> DeviceOrientationData::create(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvid eGamma, double gamma, bool canProvideAbsolute, bool absolute) 37 PassRefPtrWillBeRawPtr<DeviceOrientationData> DeviceOrientationData::create(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvid eGamma, double gamma, bool canProvideAbsolute, bool absolute)
38 { 38 {
39 return adoptRefWillBeNoop(new DeviceOrientationData(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma, canProvideAbsolute, absolute)); 39 return adoptRefWillBeNoop(new DeviceOrientationData(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma, canProvideAbsolute, absolute));
40 } 40 }
41 41
42 PassRefPtrWillBeRawPtr<DeviceOrientationData> DeviceOrientationData::create(cons t blink::WebDeviceOrientationData& data) 42 PassRefPtrWillBeRawPtr<DeviceOrientationData> DeviceOrientationData::create(cons t WebDeviceOrientationData& data)
43 { 43 {
44 return DeviceOrientationData::create(data.hasAlpha, data.alpha, data.hasBeta , data.beta, data.hasGamma, data.gamma, data.hasAbsolute, data.absolute); 44 return DeviceOrientationData::create(data.hasAlpha, data.alpha, data.hasBeta , data.beta, data.hasGamma, data.gamma, data.hasAbsolute, data.absolute);
45 } 45 }
46 46
47 DeviceOrientationData::DeviceOrientationData() 47 DeviceOrientationData::DeviceOrientationData()
48 : m_canProvideAlpha(false) 48 : m_canProvideAlpha(false)
49 , m_canProvideBeta(false) 49 , m_canProvideBeta(false)
50 , m_canProvideGamma(false) 50 , m_canProvideGamma(false)
51 , m_canProvideAbsolute(false) 51 , m_canProvideAbsolute(false)
52 , m_alpha(0) 52 , m_alpha(0)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 { 107 {
108 return m_canProvideAbsolute; 108 return m_canProvideAbsolute;
109 } 109 }
110 110
111 bool DeviceOrientationData::canProvideEventData() const 111 bool DeviceOrientationData::canProvideEventData() const
112 { 112 {
113 return canProvideAlpha() || canProvideBeta() || canProvideGamma(); 113 return canProvideAlpha() || canProvideBeta() || canProvideGamma();
114 } 114 }
115 115
116 } // namespace blink 116 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698