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

Unified Diff: ui/events/test/event_generator.h

Issue 793003004: MacViews: Implement event monitoring for a specific window (Reland) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Created 6 years 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
« no previous file with comments | « ui/aura/test/event_generator_delegate_aura.cc ('k') | ui/events/test/event_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/event_generator.h
diff --git a/ui/events/test/event_generator.h b/ui/events/test/event_generator.h
index cefecbd1b7b1c419173f4042ce02915b6c77a7a9..138f9ae8a2e0edf280b09edaee9747603c22c551 100644
--- a/ui/events/test/event_generator.h
+++ b/ui/events/test/event_generator.h
@@ -129,6 +129,13 @@ class EventGenerator {
void set_async(bool async) { async_ = async; }
bool async() const { return async_; }
+ // Dispatch events through the application instead of directly to the
+ // target window. Currently only supported on Mac.
+ void set_targeting_application(bool targeting_application) {
+ targeting_application_ = targeting_application;
+ }
+ bool targeting_application() const { return targeting_application_; }
+
// Resets the event flags bitmask.
void set_flags(int flags) { flags_ = flags; }
int flags() const { return flags_; }
@@ -383,6 +390,7 @@ class EventGenerator {
std::list<Event*> pending_events_;
// Set to true to cause events to be posted asynchronously.
bool async_;
+ bool targeting_application_;
scoped_ptr<base::TickClock> tick_clock_;
DISALLOW_COPY_AND_ASSIGN(EventGenerator);
« no previous file with comments | « ui/aura/test/event_generator_delegate_aura.cc ('k') | ui/events/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698