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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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 | « ash/common/system/toast/OWNERS ('k') | ash/common/system/toast/toast_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_SYSTEM_TOAST_TOAST_DATA_H_
6 #define ASH_COMMON_SYSTEM_TOAST_TOAST_DATA_H_
7
8 #include <string>
9
10 #include "ash/ash_export.h"
11 #include "base/optional.h"
12 #include "base/strings/string16.h"
13
14 namespace ash {
15
16 struct ASH_EXPORT ToastData {
17 // "|duration_ms| == -1" means the toast view should be displayed until the
18 // dismiss button is clicked.
19 static const int32_t kInfiniteDuration = -1;
20
21 ToastData(std::string id,
22 const base::string16& text,
23 int32_t duration_ms,
24 const base::Optional<base::string16>& dismiss_text);
25 ToastData(const ToastData& other);
26 ~ToastData();
27
28 std::string id;
29 base::string16 text;
30 int32_t duration_ms;
31 base::Optional<base::string16> dismiss_text;
32 };
33
34 } // namespace ash
35
36 #endif // ASH_COMMON_SYSTEM_TOAST_TOAST_DATA_H_
OLDNEW
« no previous file with comments | « ash/common/system/toast/OWNERS ('k') | ash/common/system/toast/toast_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698