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