| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_ |
| 6 #define CHROME_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_ | 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_ |
| 7 | 7 |
| 8 namespace device_orientation { | 8 namespace device_orientation { |
| 9 class Orientation { | 9 class Orientation { |
| 10 public: | 10 public: |
| 11 // alpha, beta and gamma are the rotations around the axes as specified in | 11 // alpha, beta and gamma are the rotations around the axes as specified in |
| 12 // http://dev.w3.org/geo/api/spec-source-orientation.html | 12 // http://dev.w3.org/geo/api/spec-source-orientation.html |
| 13 // | 13 // |
| 14 // can_provide_{alpha,beta,gamma} is true if data can be provided for that | 14 // can_provide_{alpha,beta,gamma} is true if data can be provided for that |
| 15 // variable. | 15 // variable. |
| 16 | 16 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 43 double alpha_; | 43 double alpha_; |
| 44 double beta_; | 44 double beta_; |
| 45 double gamma_; | 45 double gamma_; |
| 46 bool can_provide_alpha_; | 46 bool can_provide_alpha_; |
| 47 bool can_provide_beta_; | 47 bool can_provide_beta_; |
| 48 bool can_provide_gamma_; | 48 bool can_provide_gamma_; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace device_orientation | 51 } // namespace device_orientation |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_ | 53 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_ |
| OLD | NEW |