| OLD | NEW |
| 1 // This file was GENERATED by command: | 1 // This file was GENERATED by command: |
| 2 // pump.py dispatch_win.h.pump | 2 // pump.py dispatch_win.h.pump |
| 3 // DO NOT EDIT BY HAND!!! | 3 // DO NOT EDIT BY HAND!!! |
| 4 | 4 |
| 5 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 5 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 6 // Use of this source code is governed by a BSD-style license that can be | 6 // Use of this source code is governed by a BSD-style license that can be |
| 7 // found in the LICENSE file. | 7 // found in the LICENSE file. |
| 8 | 8 |
| 9 #ifndef REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ | 9 #ifndef REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ |
| 10 #define REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ | 10 #define REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void Swap(VARIANT* other) { | 88 void Swap(VARIANT* other) { |
| 89 VARIANT temp = *other; | 89 VARIANT temp = *other; |
| 90 *other = *this; | 90 *other = *this; |
| 91 *static_cast<VARIANTARG*>(this) = temp; | 91 *static_cast<VARIANTARG*>(this) = temp; |
| 92 } | 92 } |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(ScopedVariantArg); | 94 DISALLOW_COPY_AND_ASSIGN(ScopedVariantArg); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 // Make sure the layouts of |VARIANTARG| and |ScopedVariantArg| are identical. | 97 // Make sure the layouts of |VARIANTARG| and |ScopedVariantArg| are identical. |
| 98 COMPILE_ASSERT(sizeof(ScopedVariantArg) == sizeof(VARIANTARG), | 98 static_assert(sizeof(ScopedVariantArg) == sizeof(VARIANTARG), |
| 99 scoped_variant_arg_should_not_add_data_members); | 99 "scoped variant arg should not add data members"); |
| 100 | 100 |
| 101 } // namespace internal | 101 } // namespace internal |
| 102 | 102 |
| 103 // Invoke() is a convenience wrapper for IDispatch::Invoke. It takes care of | 103 // Invoke() is a convenience wrapper for IDispatch::Invoke. It takes care of |
| 104 // calling the desired method by its ID and implements logic for passing | 104 // calling the desired method by its ID and implements logic for passing |
| 105 // a variable number of in/out parameters to the called method. | 105 // a variable number of in/out parameters to the called method. |
| 106 // | 106 // |
| 107 // The calling convention is: | 107 // The calling convention is: |
| 108 // - [in] parameters are passsed as a constant reference or by value. | 108 // - [in] parameters are passsed as a constant reference or by value. |
| 109 // - [out] and [in] [out] parameters are passed by pointer. The pointed value | 109 // - [out] and [in] [out] parameters are passed by pointer. The pointed value |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 } | 636 } |
| 637 | 637 |
| 638 return S_OK; | 638 return S_OK; |
| 639 } | 639 } |
| 640 | 640 |
| 641 } // namespace dispatch | 641 } // namespace dispatch |
| 642 | 642 |
| 643 } // namespace remoting | 643 } // namespace remoting |
| 644 | 644 |
| 645 #endif // REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ | 645 #endif // REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ |
| OLD | NEW |