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

Side by Side Diff: content/browser/media/capture/cursor_renderer_aura.h

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_AURA_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_AURA_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_AURA_H_ 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_AURA_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Snapshot of cursor, source size, position, and cursor bitmap; as of the 61 // Snapshot of cursor, source size, position, and cursor bitmap; as of the
62 // last call to SnapshotCursorState. 62 // last call to SnapshotCursorState.
63 ui::Cursor last_cursor_; 63 ui::Cursor last_cursor_;
64 gfx::Size window_size_when_cursor_last_updated_; 64 gfx::Size window_size_when_cursor_last_updated_;
65 gfx::Point cursor_position_in_frame_; 65 gfx::Point cursor_position_in_frame_;
66 SkBitmap scaled_cursor_bitmap_; 66 SkBitmap scaled_cursor_bitmap_;
67 67
68 // Updated in mouse event listener and used to make a decision on 68 // Updated in mouse event listener and used to make a decision on
69 // when the cursor is rendered. 69 // when the cursor is rendered.
70 base::TimeDelta last_mouse_movement_timestamp_; 70 base::TimeTicks last_mouse_movement_timestamp_;
71 float last_mouse_position_x_; 71 float last_mouse_position_x_;
72 float last_mouse_position_y_; 72 float last_mouse_position_y_;
73 bool cursor_displayed_; 73 bool cursor_displayed_;
74 74
75 // Controls whether cursor is displayed based on active mouse movement. 75 // Controls whether cursor is displayed based on active mouse movement.
76 const CursorDisplaySetting cursor_display_setting_; 76 const CursorDisplaySetting cursor_display_setting_;
77 77
78 // Allows tests to replace the clock. 78 // Allows tests to replace the clock.
79 base::DefaultTickClock default_tick_clock_; 79 base::DefaultTickClock default_tick_clock_;
80 base::TickClock* tick_clock_; 80 base::TickClock* tick_clock_;
81 81
82 base::WeakPtrFactory<CursorRendererAura> weak_factory_; 82 base::WeakPtrFactory<CursorRendererAura> weak_factory_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(CursorRendererAura); 84 DISALLOW_COPY_AND_ASSIGN(CursorRendererAura);
85 }; 85 };
86 86
87 } // namespace content 87 } // namespace content
88 88
89 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_AURA_H_ 89 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_AURA_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/media/capture/cursor_renderer_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698