| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 class InternalClass { | 298 class InternalClass { |
| 299 public: | 299 public: |
| 300 static void Method(); | 300 static void Method(); |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 } // namespace internal | 303 } // namespace internal |
| 304 | 304 |
| 305 // Tests for --method-blocklist cmdline parameter. | 305 // Tests for --method-blocklist cmdline parameter. |
| 306 class IdlTestClass { | 306 class IdlTestClass { |
| 307 public: | 307 public: |
| 308 static int IdlTestMethodNoParams(char x) { return 123; } | 308 static int NotBlocklistedMethod() { return 123; } |
| 309 static int idlTestMethodOneParam(char x) { return 123; } | 309 int NotBlocklistedMethod(int x) { return 123; } |
| 310 | 310 |
| 311 int idlTestMethodNoParams() { return 123; } | 311 static int idlStaticMethod() { return 123; } |
| 312 int IdlTestMethodNoParams(int x) { return 123; } | 312 int idlInstanceMethod() { return 123; } |
| 313 | |
| 314 int IdlTestMethodOneParam() { return 123; } | |
| 315 int idlTestMethodOneParam(int x) { return 123; } | |
| 316 | |
| 317 int IdlTestMethodTwoOrThreeParams() { return 123; } | |
| 318 int idlTestMethodTwoOrThreeParams(int x, int y) { return 123; } | |
| 319 int idlTestMethodTwoOrThreeParams(int x, int y, int z) { return 123; } | |
| 320 | |
| 321 int idlOptionalArgsPass(int x = 0) { return x; } | |
| 322 int IdlOptionalArgsStillTooMany(int x, int y = 0) { return x + y; } | |
| 323 int IdlOptionalArgsTooLittle(int x = 0) { return x; } | |
| 324 | 313 |
| 325 template <typename T> | 314 template <typename T> |
| 326 int idlTemplateMethod(T x) { | 315 int idlTemplateMethod(T x) { |
| 327 return 123; | 316 return 123; |
| 328 } | 317 } |
| 329 | |
| 330 int path() { return 123; } | |
| 331 int GetPath(int x) { return 123; } | |
| 332 }; | 318 }; |
| 333 | 319 |
| 334 template <typename T> | 320 template <typename T> |
| 335 class IdlTemplateClass { | 321 class IdlTemplateClass { |
| 336 public: | 322 public: |
| 337 int idlTestMethod(T x) { return 123; } | 323 int idlInstanceMethod(T x) { return 123; } |
| 338 }; | 324 }; |
| 339 | 325 |
| 340 } // namespace blink | 326 } // namespace blink |
| 341 | 327 |
| 342 // https://crbug.com/640688 - need to rewrite method name below. | 328 // https://crbug.com/640688 - need to rewrite method name below. |
| 343 void blink::ClassDeclaredInsideBlink::MethodDefinedOutsideBlink() {} | 329 void blink::ClassDeclaredInsideBlink::MethodDefinedOutsideBlink() {} |
| 344 void blink::internal::InternalClass::Method() {} | 330 void blink::internal::InternalClass::Method() {} |
| OLD | NEW |