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

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

Issue 1877043003: [EXPERIMENT] MacViews: Implement Tab Dragging Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 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
« no previous file with comments | « chrome/test/base/interactive_test_utils_mac.mm ('k') | ui/base/test/ui_controls_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/test/ui_controls.h
diff --git a/ui/base/test/ui_controls.h b/ui/base/test/ui_controls.h
index 4fc54abb126c56a822c587540300e742c586f143..c1ed4be11ba8b58eb8f7e22ce2a9a048d6b95e64 100644
--- a/ui/base/test/ui_controls.h
+++ b/ui/base/test/ui_controls.h
@@ -10,6 +10,10 @@
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/gfx/native_widget_types.h"
+namespace gfx {
+class Point;
+} // namespace gfx
+
namespace ui_controls {
// A set of utility functions to generate native events in platform
@@ -106,6 +110,20 @@ void InstallUIControlsAura(UIControlsAura* instance);
// to traverse to the desired item; because the application is configured to
// traverse more elements for accessibility reasons.
bool IsFullKeyboardAccessEnabled();
+
+// When |enable_cgevents| is true, all simulated mouse events will be posted to
+// the WindowServer, and the actual mouse will move on the screen.
+void SetSendMouseEventsAsCGEvents(bool enable_cgevents);
+bool SendMouseEventsAsCGEvents();
+
+// Invokes |task| when an application starts processing an event that matches
+// |event|.
+void NotifyWhenEventIsProcessed(NSEvent* event, const base::Closure& task);
+
+// If |enable_override| is true, overrides result returned by +[NSEvent
+// mouseLocation] to |p| without generating mouse move events. Override is in
+// effect until called with |enable_override| == false.
+void SetMousePositionOverride(bool enable_override, const gfx::Point& p);
#endif
} // namespace ui_controls
« no previous file with comments | « chrome/test/base/interactive_test_utils_mac.mm ('k') | ui/base/test/ui_controls_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698