| OLD | NEW |
| 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 #include <type_traits> | 5 #include <type_traits> |
| 6 | 6 |
| 7 namespace not_blink { | 7 namespace not_blink { |
| 8 | 8 |
| 9 void function(int x) {} | 9 void function(int x) {} |
| 10 | 10 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 class Derived : public Base { | 273 class Derived : public Base { |
| 274 public: | 274 public: |
| 275 void virtualMethod() override { | 275 void virtualMethod() override { |
| 276 this->Class::virtualMethodInBlink(); | 276 this->Class::virtualMethodInBlink(); |
| 277 this->Base::virtualMethod(); | 277 this->Base::virtualMethod(); |
| 278 } | 278 } |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 } // namespace cxx_dependent_scope_member_expr_testing | 281 } // namespace cxx_dependent_scope_member_expr_testing |
| 282 | 282 |
| 283 namespace blink_methods_called_from_mojo_traits_are_not_rewritten { |
| 284 |
| 285 template <typename V> |
| 286 struct MapTraits; |
| 287 |
| 288 template <typename V> |
| 289 struct MapTraits<blink::test_unnamed_arg::Class<V>> { |
| 290 static void SetToEmpty(blink::test_unnamed_arg::Class<V>* output) { |
| 291 // Need to rewrite |f| to |F| below (because this method name |
| 292 // does get rewritten when processing blink::test_unnamed_arg::Class). |
| 293 // See also https://crbug.com/670434. |
| 294 output->f(123); |
| 295 } |
| 296 }; |
| 297 |
| 298 } // namespace blink_methods_called_from_mojo_traits_are_not_rewritten |
| 299 |
| 283 } // namespace not_blink | 300 } // namespace not_blink |
| OLD | NEW |