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

Side by Side Diff: Source/core/inspector/InspectorBaseAgent.h

Issue 1672443003: Fix devtools bugs Fix a spurious layout test failure (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 10 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 /* 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
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)
OLDNEW
« no previous file with comments | « Source/bindings/core/dart/DartInspectorRuntimeAgent.cpp ('k') | Source/core/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698