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

Side by Side Diff: Source/modules/geolocation/PositionError.h

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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
« no previous file with comments | « Source/modules/geolocation/Geoposition.h ('k') | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/modules/geolocation/Geoposition.h ('k') | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698