Home | History | Annotate | Download | only in core

Lines Matching refs:cursor_manager_

51         cursor_manager_(scoped_ptr<wm::NativeCursorManager>(
56 wm::CursorManager cursor_manager_;
82 cursor_manager_.SetCursor(ui::kCursorCopy);
83 EXPECT_EQ(ui::kCursorCopy, cursor_manager_.GetCursor().native_type());
85 cursor_manager_.ShowCursor();
86 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
87 cursor_manager_.HideCursor();
88 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
90 EXPECT_EQ(ui::kCursorCopy, cursor_manager_.GetCursor().native_type());
93 cursor_manager_.LockCursor();
94 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
95 cursor_manager_.ShowCursor();
96 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
97 cursor_manager_.UnlockCursor();
98 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
100 cursor_manager_.LockCursor();
101 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
102 cursor_manager_.HideCursor();
103 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
104 cursor_manager_.UnlockCursor();
105 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
109 cursor_manager_.LockCursor();
110 cursor_manager_.HideCursor();
111 cursor_manager_.UnlockCursor();
112 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
114 cursor_manager_.ShowCursor();
115 cursor_manager_.LockCursor();
116 cursor_manager_.UnlockCursor();
117 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
119 cursor_manager_.LockCursor();
120 cursor_manager_.ShowCursor();
121 cursor_manager_.UnlockCursor();
122 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
124 cursor_manager_.HideCursor();
125 cursor_manager_.LockCursor();
126 cursor_manager_.UnlockCursor();
127 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
133 cursor_manager_.SetCursor(ui::kCursorCopy);
134 EXPECT_EQ(ui::kCursorCopy, cursor_manager_.GetCursor().native_type());
136 cursor_manager_.EnableMouseEvents();
137 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
138 cursor_manager_.DisableMouseEvents();
139 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
141 EXPECT_EQ(ui::kCursorCopy, cursor_manager_.GetCursor().native_type());
144 cursor_manager_.LockCursor();
145 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
146 cursor_manager_.EnableMouseEvents();
147 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
148 cursor_manager_.UnlockCursor();
149 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
151 cursor_manager_.LockCursor();
152 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
153 cursor_manager_.DisableMouseEvents();
154 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
155 cursor_manager_.UnlockCursor();
156 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
160 cursor_manager_.LockCursor();
161 cursor_manager_.DisableMouseEvents();
162 cursor_manager_.UnlockCursor();
163 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
165 cursor_manager_.EnableMouseEvents();
166 cursor_manager_.LockCursor();
167 cursor_manager_.UnlockCursor();
168 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
170 cursor_manager_.LockCursor();
171 cursor_manager_.EnableMouseEvents();
172 cursor_manager_.UnlockCursor();
173 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
175 cursor_manager_.DisableMouseEvents();
176 cursor_manager_.LockCursor();
177 cursor_manager_.UnlockCursor();
178 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
182 EXPECT_EQ(ui::CURSOR_SET_NORMAL, cursor_manager_.GetCursorSet());
184 cursor_manager_.SetCursorSet(ui::CURSOR_SET_NORMAL);
185 EXPECT_EQ(ui::CURSOR_SET_NORMAL, cursor_manager_.GetCursorSet());
187 cursor_manager_.SetCursorSet(ui::CURSOR_SET_LARGE);
188 EXPECT_EQ(ui::CURSOR_SET_LARGE, cursor_manager_.GetCursorSet());
190 cursor_manager_.SetCursorSet(ui::CURSOR_SET_NORMAL);
191 EXPECT_EQ(ui::CURSOR_SET_NORMAL, cursor_manager_.GetCursorSet());
195 cursor_manager_.EnableMouseEvents();
196 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
197 cursor_manager_.DisableMouseEvents();
198 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
206 cursor_manager_.EnableMouseEvents();
207 cursor_manager_.ShowCursor();
208 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
209 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
210 cursor_manager_.HideCursor();
211 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
212 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
213 cursor_manager_.ShowCursor();
214 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
215 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
218 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
219 cursor_manager_.DisableMouseEvents();
220 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
221 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
224 cursor_manager_.EnableMouseEvents();
225 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
226 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
228 cursor_manager_.ShowCursor();
229 cursor_manager_.DisableMouseEvents();
230 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
231 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
232 cursor_manager_.EnableMouseEvents();
233 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
234 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
236 cursor_manager_.HideCursor();
237 cursor_manager_.DisableMouseEvents();
238 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
239 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
240 cursor_manager_.EnableMouseEvents();
241 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
242 EXPECT_TRUE(cursor_manager_.IsMouseEventsEnabled());
245 cursor_manager_.DisableMouseEvents();
246 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
247 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
248 cursor_manager_.ShowCursor();
249 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
250 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
251 cursor_manager_.DisableMouseEvents();
252 EXPECT_FALSE(cursor_manager_.IsCursorVisible());
253 EXPECT_FALSE(cursor_manager_.IsMouseEventsEnabled());
260 cursor_manager_.DisableMouseEvents();
261 cursor_manager_.DisableMouseEvents();
262 cursor_manager_.EnableMouseEvents();
263 cursor_manager_.LockCursor();
264 cursor_manager_.UnlockCursor();
265 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
271 cursor_manager_.DisableMouseEvents();
272 cursor_manager_.EnableMouseEvents();
273 cursor_manager_.EnableMouseEvents();
274 cursor_manager_.LockCursor();
275 cursor_manager_.UnlockCursor();
276 EXPECT_TRUE(cursor_manager_.IsCursorVisible());
284 cursor_manager_.AddObserver(&observer_a);
285 cursor_manager_.AddObserver(&observer_b);
296 cursor_manager_.HideCursor();
305 cursor_manager_.ShowCursor();
313 cursor_manager_.RemoveObserver(&observer_b);
318 cursor_manager_.HideCursor();
326 cursor_manager_.ShowCursor();