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

Unified Diff: content/browser/media/capture/cursor_renderer_aura.h

Issue 1484403002: cast: Support for low-latency interactive mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/media/capture/cursor_renderer_aura.h
diff --git a/content/browser/media/capture/cursor_renderer_aura.h b/content/browser/media/capture/cursor_renderer_aura.h
index 42dffa6b392a60f1bd66bc3e644c03a1f8bbed91..61e647c97db99edc531f5e3973ff9155f000c75f 100644
--- a/content/browser/media/capture/cursor_renderer_aura.h
+++ b/content/browser/media/capture/cursor_renderer_aura.h
@@ -41,10 +41,13 @@ class CONTENT_EXPORT CursorRendererAura : public CursorRenderer,
// ui::EventHandler overrides.
void OnMouseEvent(ui::MouseEvent* event) final;
+ void OnEvent(ui::Event* event) final;
// aura::WindowObserver overrides.
void OnWindowDestroying(aura::Window* window) final;
+ bool ui_event_detected() const final;
+
private:
friend class CursorRendererAuraTest;
@@ -64,6 +67,8 @@ class CONTENT_EXPORT CursorRendererAura : public CursorRenderer,
float last_mouse_position_y_;
bool cursor_displayed_;
+ base::TimeTicks last_time_ui_event_detected_;
+
// Allows tests to replace the clock.
base::DefaultTickClock default_tick_clock_;
base::TickClock* tick_clock_;

Powered by Google App Engine
This is Rietveld 408576698