| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 ErrorCode code() const { return m_code; } | 47 ErrorCode code() const { return m_code; } |
| 48 const String& message() const { return m_message; } | 48 const String& message() const { return m_message; } |
| 49 void setIsFatal(bool isFatal) { m_isFatal = isFatal; } | 49 void setIsFatal(bool isFatal) { m_isFatal = isFatal; } |
| 50 bool isFatal() const { return m_isFatal; } | 50 bool isFatal() const { return m_isFatal; } |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 PositionError(ErrorCode code, const String& message) | 53 PositionError(ErrorCode code, const String& message) |
| 54 : m_code(code) | 54 : m_code(code) |
| 55 , m_message(message) | 55 , m_message(message) |
| 56 , m_isFatal(false) | 56 , m_isFatal(false) { } |
| 57 { | |
| 58 ScriptWrappable::init(this); | |
| 59 } | |
| 60 | 57 |
| 61 ErrorCode m_code; | 58 ErrorCode m_code; |
| 62 String m_message; | 59 String m_message; |
| 63 // Whether the error is fatal, such that no request can ever obtain a good | 60 // Whether the error is fatal, such that no request can ever obtain a good |
| 64 // position fix in the future. | 61 // position fix in the future. |
| 65 bool m_isFatal; | 62 bool m_isFatal; |
| 66 }; | 63 }; |
| 67 | 64 |
| 68 } // namespace blink | 65 } // namespace blink |
| 69 | 66 |
| 70 #endif // PositionError_h | 67 #endif // PositionError_h |
| OLD | NEW |