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

Unified Diff: ui/base/clipboard/clipboard.h

Issue 2812773002: Refactor Clipboard Last Modified Time Storage (Closed)
Patch Set: load on startup Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/clipboard/clipboard.h
diff --git a/ui/base/clipboard/clipboard.h b/ui/base/clipboard/clipboard.h
index 5d27f2ceab7a1417dada22c22558c47a99614094..38f44cd10f04a2e09677791898961685231760b0 100644
--- a/ui/base/clipboard/clipboard.h
+++ b/ui/base/clipboard/clipboard.h
@@ -209,6 +209,9 @@ class UI_BASE_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) {
// time is unknown, returns Time::Time().
virtual base::Time GetClipboardLastModifiedTime() const;
+ // Resets the clipboard last modified time to Time::Time().
+ virtual void ClearClipboardLastModifiedTime();
dcheng 2017/04/12 00:56:09 Nit: omit Clipboard (probably should omit from Get
Mark P 2017/04/12 21:33:51 Good idea. Clipboard is obvious. Did both.
+
// Gets the FormatType corresponding to an arbitrary format string,
// registering it with the system if needed. Due to Windows/Linux
// limitiations, |format_string| must never be controlled by the user.

Powered by Google App Engine
This is Rietveld 408576698