| 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 #ifndef UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_ | 5 #ifndef UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_ |
| 6 #define UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_ | 6 #define UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "ui/gfx/swap_result.h" | 9 #include "ui/gfx/swap_result.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 | 12 |
| 13 using SwapCompletionCallback = base::Callback<void(gfx::SwapResult)>; | 13 using SwapCompletionOnceCallback = base::OnceCallback<void(gfx::SwapResult)>; |
| 14 | 14 |
| 15 } // namespace ui | 15 } // namespace ui |
| 16 | 16 |
| 17 #endif // UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_ | 17 #endif // UI_OZONE_PUBLIC_SWAP_COMPLETION_CALLBACK_H_ |
| OLD | NEW |