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

Side by Side Diff: content/browser/device_orientation/orientation.h

Issue 10703108: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_ 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_
6 #define CONTENT_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, gamma and absolute are the rotations around the axes as 11 // alpha, beta, gamma and absolute are the rotations around the axes as
12 // specified in http://dev.w3.org/geo/api/spec-source-orientation.html 12 // specified in http://dev.w3.org/geo/api/spec-source-orientation.html
13 // 13 //
14 // can_provide_{alpha,beta,gamma,absolute} is true if data can be provided 14 // can_provide_{alpha,beta,gamma,absolute} is true if data can be provided
15 // for that variable. 15 // for that variable.
16 16
17 Orientation() 17 Orientation()
18 : can_provide_alpha_(false), 18 : alpha_(0),
19 beta_(0),
20 gamma_(0),
21 absolute_(false),
22 can_provide_alpha_(false),
19 can_provide_beta_(false), 23 can_provide_beta_(false),
20 can_provide_gamma_(false), 24 can_provide_gamma_(false),
21 can_provide_absolute_(false) { 25 can_provide_absolute_(false) {
22 } 26 }
23 Orientation(const Orientation& orientation) 27 Orientation(const Orientation& orientation)
24 : alpha_(orientation.alpha()), 28 : alpha_(orientation.alpha()),
25 beta_(orientation.beta()), 29 beta_(orientation.beta()),
26 gamma_(orientation.gamma()), 30 gamma_(orientation.gamma()),
27 absolute_(orientation.absolute()), 31 absolute_(orientation.absolute()),
28 can_provide_alpha_(orientation.can_provide_alpha()), 32 can_provide_alpha_(orientation.can_provide_alpha()),
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 bool absolute_; 87 bool absolute_;
84 bool can_provide_alpha_; 88 bool can_provide_alpha_;
85 bool can_provide_beta_; 89 bool can_provide_beta_;
86 bool can_provide_gamma_; 90 bool can_provide_gamma_;
87 bool can_provide_absolute_; 91 bool can_provide_absolute_;
88 }; 92 };
89 93
90 } // namespace device_orientation 94 } // namespace device_orientation
91 95
92 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_ 96 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view.cc ('k') | content/common/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698