OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 dispatcher->registerAgent(static_cast<AgentClass*>(this)); | 124 dispatcher->registerAgent(static_cast<AgentClass*>(this)); |
125 } | 125 } |
126 | 126 |
127 protected: | 127 protected: |
128 explicit InspectorBaseAgent(const String& name) | 128 explicit InspectorBaseAgent(const String& name) |
129 : InspectorAgent(name) | 129 : InspectorAgent(name) |
130 , m_frontend(nullptr) | 130 , m_frontend(nullptr) |
131 { | 131 { |
132 } | 132 } |
133 | 133 |
| 134 // DART: public as hack for dart. |
| 135 public: |
134 FrontendClass* frontend() const { return m_frontend; } | 136 FrontendClass* frontend() const { return m_frontend; } |
| 137 // DART: end of public for dart. |
135 | 138 |
136 private: | 139 private: |
137 FrontendClass* m_frontend; | 140 FrontendClass* m_frontend; |
138 }; | 141 }; |
139 | 142 |
140 inline bool asBool(const bool* const b) | 143 inline bool asBool(const bool* const b) |
141 { | 144 { |
142 return b ? *b : false; | 145 return b ? *b : false; |
143 } | 146 } |
144 | 147 |
145 } // namespace blink | 148 } // namespace blink |
146 | 149 |
147 #endif // !defined(InspectorBaseAgent_h) | 150 #endif // !defined(InspectorBaseAgent_h) |
OLD | NEW |