Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. | |
| 2 // | |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 // you may not use this file except in compliance with the License. | |
| 5 // You may obtain a copy of the License at | |
| 6 // | |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 // | |
| 9 // Unless required by applicable law or agreed to in writing, software | |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 // See the License for the specific language governing permissions and | |
| 13 // limitations under the License. | |
| 14 | |
| 15 #ifndef CRASHPAD_UTIL_MISC_TRI_STATE_H_ | |
| 16 #define CRASHPAD_UTIL_MISC_TRI_STATE_H_ | |
| 17 | |
| 18 #include <stdint.h> | |
| 19 | |
| 20 namespace crashpad { | |
| 21 | |
| 22 //! \brief A tri-state value that can be unset, on, or off. | |
| 23 enum class TriState : uint8_t { | |
| 24 //! \brief The value has not explicitly been set. | |
| 25 //! | |
| 26 //! To allow a zero-initialized value to have this behavior, this must have | |
| 27 //! the value `0`. | |
| 28 kUnset = 0, | |
| 29 | |
| 30 //! \brief The value has explicitly been set to on, or a behavior has | |
| 31 //! explicitly been enabled. | |
| 32 kEnabled, | |
| 33 | |
| 34 //! \brief The value has explicitly been set to off, or a behavior has | |
| 35 //! explicitly been disabled. | |
| 36 kDisabled, | |
| 37 }; | |
| 38 | |
| 39 TriState ConvertToTriState(uint32_t value); | |
|
Robert Sesek
2015/03/11 20:26:59
Missing a file that implements this? And unused?
Mark Mentovai
2015/03/11 21:02:26
Robert Sesek wrote:
| |
| 40 | |
| 41 } // namespace crashpad | |
| 42 | |
| 43 #endif // CRASHPAD_UTIL_MISC_TRI_STATE_H_ | |
| OLD | NEW |