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

Unified Diff: ui/base/test/test_clipboard.h

Issue 1162373002: Make some editing/selection functions accessible to c/b/renderer_host/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switched to oninput event as oncut/onpaste happen before cut/paste Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/test/test_clipboard.h
diff --git a/ui/base/test/test_clipboard.h b/ui/base/test/test_clipboard.h
index 58fa5075fa613abe76ea593552769cdf26013da6..4a424762957ba49c0e38e61fa826b501f5ce827d 100644
--- a/ui/base/test/test_clipboard.h
+++ b/ui/base/test/test_clipboard.h
@@ -6,6 +6,7 @@
#define UI_BASE_TEST_TEST_CLIPBOARD_H_
#include <map>
+#include "base/callback.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/clipboard/clipboard.h"
@@ -60,6 +61,9 @@ class TestClipboard : public Clipboard {
const char* data_data,
size_t data_len) override;
+ void ResetWaits();
+ void WaitForWriteText();
+
private:
struct DataStore {
DataStore();
@@ -81,6 +85,10 @@ class TestClipboard : public Clipboard {
ClipboardType default_store_type_;
mutable std::map<ClipboardType, DataStore> stores_;
+ bool waiting_for_write_text_;
+ bool write_text_called_;
+ base::Closure write_text_wait_quit_closure_;
+
DISALLOW_COPY_AND_ASSIGN(TestClipboard);
};

Powered by Google App Engine
This is Rietveld 408576698