Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: ash/system/toast/toast_data.h

Issue 2031973003: Use int32_t for duration property of toast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/system/toast/toast_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SYSTEM_TOAST_TOAST_DATA_H_
6 #define ASH_SYSTEM_TOAST_TOAST_DATA_H_ 6 #define ASH_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 ToastData(const std::string& id, 15 ToastData(const std::string& id, const std::string& text, int32_t duration_ms)
16 const std::string& text,
17 uint64_t duration_ms)
18 : id(id), text(text), duration_ms(duration_ms) {} 16 : id(id), text(text), duration_ms(duration_ms) {}
19 17
20 std::string id; 18 std::string id;
21 std::string text; 19 std::string text;
22 uint64_t duration_ms; 20 int32_t duration_ms;
23 }; 21 };
24 22
25 } // namespace ash 23 } // namespace ash
26 24
27 #endif // ASH_SYSTEM_TOAST_TOAST_DATA_H_ 25 #endif // ASH_SYSTEM_TOAST_TOAST_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/toast/toast_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698