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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/ErrorSupport_h.template

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ErrorSupport_h 5 #ifndef ErrorSupport_h
6 #define ErrorSupport_h 6 #define ErrorSupport_h
7 7
8 #include "platform/inspector_protocol/Platform.h" 8 //#include "Platform.h"
9 #include "platform/inspector_protocol/String16.h" 9 //#include "String16.h"
10 #include "{{export_macro_include}}"
10 11
11 #include <vector> 12 #include <vector>
12 13
13 namespace blink { 14 namespace blink {
14 namespace protocol { 15 namespace protocol {
15 16
16 using ErrorString = String16; 17 using ErrorString = String16;
17 18
18 class PLATFORM_EXPORT ErrorSupport { 19 class {{export_macro}} ErrorSupport {
19 public: 20 public:
20 ErrorSupport(); 21 ErrorSupport();
21 ErrorSupport(String16* errorString); 22 ErrorSupport(String16* errorString);
22 ~ErrorSupport(); 23 ~ErrorSupport();
23 24
24 void push(); 25 void push();
25 void setName(const String16&); 26 void setName(const String16&);
26 void pop(); 27 void pop();
27 void addError(const String16&); 28 void addError(const String16&);
28 bool hasErrors(); 29 bool hasErrors();
29 String16 errors(); 30 String16 errors();
30 31
31 private: 32 private:
32 std::vector<String16> m_path; 33 std::vector<String16> m_path;
33 std::vector<String16> m_errors; 34 std::vector<String16> m_errors;
34 String16* m_errorString; 35 String16* m_errorString;
35 }; 36 };
36 37
37 } // namespace platform 38 } // namespace platform
38 } // namespace blink 39 } // namespace blink
39 40
40 using blink::protocol::ErrorString; 41 using blink::protocol::ErrorString;
41 42
42 #endif // !defined(ErrorSupport_h) 43 #endif // !defined(ErrorSupport_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698