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

Unified Diff: ash/common/system/toast/toast_data.h

Issue 2506583005: Hide dismiss button on toast when doing partial screenshot using stylus tools. (Closed)
Patch Set: Add DCHECK Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/system/toast/toast_data.h
diff --git a/ash/common/system/toast/toast_data.h b/ash/common/system/toast/toast_data.h
index 2c3556f22a444d2ea41e31f1a41ba673fd1c0090..a12e073bda9868a7f86dd788924b9ecbc3175603 100644
--- a/ash/common/system/toast/toast_data.h
+++ b/ash/common/system/toast/toast_data.h
@@ -8,6 +8,7 @@
#include <string>
#include "ash/ash_export.h"
+#include "base/optional.h"
#include "base/strings/string16.h"
namespace ash {
@@ -20,13 +21,14 @@ struct ASH_EXPORT ToastData {
ToastData(std::string id,
const base::string16& text,
int32_t duration_ms,
- const base::string16& dismiss_text);
+ const base::Optional<base::string16>& dismiss_text);
ToastData(const ToastData& other);
+ ~ToastData();
std::string id;
base::string16 text;
int32_t duration_ms;
- base::string16 dismiss_text;
+ base::Optional<base::string16> dismiss_text;
};
} // namespace ash
« no previous file with comments | « ash/common/system/chromeos/palette/tools/capture_region_mode.cc ('k') | ash/common/system/toast/toast_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698