| 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 ASH_SYSTEM_TOAST_TOAST_DATA_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TOAST_TOAST_DATA_H_ |
| 6 #define ASH_SYSTEM_TOAST_TOAST_DATA_H_ | 6 #define ASH_COMMON_SYSTEM_TOAST_TOAST_DATA_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 | 11 |
| 12 namespace ash { | 12 namespace ash { |
| 13 | 13 |
| 14 struct ASH_EXPORT ToastData { | 14 struct ASH_EXPORT ToastData { |
| 15 // "|duration_ms| == -1" means the toast view should be displayed until the | 15 // "|duration_ms| == -1" means the toast view should be displayed until the |
| 16 // dismiss button is clicked. | 16 // dismiss button is clicked. |
| 17 static const int32_t kInfiniteDuration = -1; | 17 static const int32_t kInfiniteDuration = -1; |
| 18 | 18 |
| 19 ToastData(std::string id, | 19 ToastData(std::string id, |
| 20 std::string text, | 20 std::string text, |
| 21 int32_t duration_ms, | 21 int32_t duration_ms, |
| 22 std::string dismiss_text); | 22 std::string dismiss_text); |
| 23 ToastData(const ToastData& other); | 23 ToastData(const ToastData& other); |
| 24 | 24 |
| 25 std::string id; | 25 std::string id; |
| 26 std::string text; | 26 std::string text; |
| 27 int32_t duration_ms; | 27 int32_t duration_ms; |
| 28 std::string dismiss_text; | 28 std::string dismiss_text; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace ash | 31 } // namespace ash |
| 32 | 32 |
| 33 #endif // ASH_SYSTEM_TOAST_TOAST_DATA_H_ | 33 #endif // ASH_COMMON_SYSTEM_TOAST_TOAST_DATA_H_ |
| OLD | NEW |