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

Side by Side Diff: components/exo/pointer.h

Issue 2933133002: exo: Select cursor capture scale at run time (Closed)
Patch Set: Address nits Created 3 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
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_EXO_POINTER_H_ 5 #ifndef COMPONENTS_EXO_POINTER_H_
6 #define COMPONENTS_EXO_POINTER_H_ 6 #define COMPONENTS_EXO_POINTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // The position of the pointer surface relative to the pointer location. 105 // The position of the pointer surface relative to the pointer location.
106 gfx::Point hotspot_; 106 gfx::Point hotspot_;
107 107
108 // Latest cursor snapshot. 108 // Latest cursor snapshot.
109 SkBitmap cursor_bitmap_; 109 SkBitmap cursor_bitmap_;
110 110
111 // The current cursor. 111 // The current cursor.
112 ui::Cursor cursor_; 112 ui::Cursor cursor_;
113 113
114 // Scale at which cursor snapshot is captured. The resulting bitmap is scaled
115 // on displays whose DSF does not match this scale.
116 float capture_scale_;
117
114 // Source used for cursor capture copy output requests. 118 // Source used for cursor capture copy output requests.
115 const base::UnguessableToken cursor_capture_source_id_; 119 const base::UnguessableToken cursor_capture_source_id_;
116 120
117 // Last received event type. 121 // Last received event type.
118 ui::EventType last_event_type_ = ui::ET_UNKNOWN; 122 ui::EventType last_event_type_ = ui::ET_UNKNOWN;
119 123
120 // Weak pointer factory used for cursor capture callbacks. 124 // Weak pointer factory used for cursor capture callbacks.
121 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; 125 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_;
122 126
123 DISALLOW_COPY_AND_ASSIGN(Pointer); 127 DISALLOW_COPY_AND_ASSIGN(Pointer);
124 }; 128 };
125 129
126 } // namespace exo 130 } // namespace exo
127 131
128 #endif // COMPONENTS_EXO_POINTER_H_ 132 #endif // COMPONENTS_EXO_POINTER_H_
OLDNEW
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698