OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "gen/thing.h" | 5 #include "gen/thing.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 | 8 |
9 class InterfaceOutsideOfBlink { | 9 class InterfaceOutsideOfBlink { |
10 public: | 10 public: |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 struct StructInBlink { | 170 struct StructInBlink { |
171 // Structs in blink should rename their methods to capitals. | 171 // Structs in blink should rename their methods to capitals. |
172 bool Function() { return true; } | 172 bool Function() { return true; } |
173 }; | 173 }; |
174 | 174 |
175 class BitVector { | 175 class BitVector { |
176 public: | 176 public: |
177 class OutOfLineBits {}; | 177 class OutOfLineBits {}; |
178 enum Foo { kBlah }; | 178 enum Foo { kBlah }; |
179 struct Bar {}; | 179 struct Bar {}; |
| 180 class Baz {}; |
| 181 |
| 182 template <typename T> |
| 183 class MyRefPtr {}; |
180 | 184 |
181 // Naive renaming will break the build, by leaving return type the same | 185 // Naive renaming will break the build, by leaving return type the same |
182 // as method the name - to avoid this "Get" prefix needs to be prepended | 186 // as the method name - to avoid this "Get" prefix needs to be prepended |
183 // as suggested in https://crbug.com/582312#c17. | 187 // as suggested in https://crbug.com/582312#c17. |
184 const OutOfLineBits* GetOutOfLineBits() const { return nullptr; } | 188 const OutOfLineBits* GetOutOfLineBits() const { return nullptr; } |
185 Foo GetFoo() { return kBlah; } | 189 Foo GetFoo() { return kBlah; } |
186 const Bar& GetBar() const { return bar_; } | 190 const Bar& GetBar() const { return bar_; } |
| 191 MyRefPtr<Baz> GetBaz() { return MyRefPtr<Baz>(); } |
187 | 192 |
188 private: | 193 private: |
189 Bar bar_; | 194 Bar bar_; |
190 }; | 195 }; |
191 | 196 |
192 } // namespace blink | 197 } // namespace blink |
193 | 198 |
194 namespace WTF { | 199 namespace WTF { |
195 | 200 |
196 struct StructInWTF { | 201 struct StructInWTF { |
(...skipping 24 matching lines...) Expand all Loading... |
221 static void Method(); | 226 static void Method(); |
222 }; | 227 }; |
223 | 228 |
224 } // namespace internal | 229 } // namespace internal |
225 | 230 |
226 } // namespace blink | 231 } // namespace blink |
227 | 232 |
228 // https://crbug.com/640688 - need to rewrite method name below. | 233 // https://crbug.com/640688 - need to rewrite method name below. |
229 void blink::ClassDeclaredInsideBlink::MethodDefinedOutsideBlink() {} | 234 void blink::ClassDeclaredInsideBlink::MethodDefinedOutsideBlink() {} |
230 void blink::internal::InternalClass::Method() {} | 235 void blink::internal::InternalClass::Method() {} |
OLD | NEW |