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

Side by Side Diff: Source/core/page/Chrome.cpp

Issue 1121433003: Fix mouse cursor update timer to be page-global instead of per-frame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: bokan cr feedback Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Chrome.h ('k') | Source/core/page/EventHandler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 m_client->runOpenPanel(frame, fileChooser); 329 m_client->runOpenPanel(frame, fileChooser);
330 } 330 }
331 331
332 void Chrome::dispatchViewportPropertiesDidChange(const ViewportDescription& desc ription) const 332 void Chrome::dispatchViewportPropertiesDidChange(const ViewportDescription& desc ription) const
333 { 333 {
334 m_client->dispatchViewportPropertiesDidChange(description); 334 m_client->dispatchViewportPropertiesDidChange(description);
335 } 335 }
336 336
337 void Chrome::setCursor(const Cursor& cursor) 337 void Chrome::setCursor(const Cursor& cursor)
338 { 338 {
339 m_lastSetMouseCursorForTesting = cursor;
339 m_client->setCursor(cursor); 340 m_client->setCursor(cursor);
340 } 341 }
341 342
343 Cursor Chrome::getLastSetCursorForTesting() const
344 {
345 return m_lastSetMouseCursorForTesting;
346 }
347
342 void Chrome::scheduleAnimation() 348 void Chrome::scheduleAnimation()
343 { 349 {
344 m_page->animator().setAnimationFramePending(); 350 m_page->animator().setAnimationFramePending();
345 m_client->scheduleAnimation(); 351 m_client->scheduleAnimation();
346 } 352 }
347 353
348 // -------- 354 // --------
349 355
350 void Chrome::scheduleAnimationForFrame(LocalFrame* localRoot) 356 void Chrome::scheduleAnimationForFrame(LocalFrame* localRoot)
351 { 357 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 { 394 {
389 m_client->registerViewportLayers(); 395 m_client->registerViewportLayers();
390 } 396 }
391 397
392 void Chrome::willBeDestroyed() 398 void Chrome::willBeDestroyed()
393 { 399 {
394 m_client->chromeDestroyed(); 400 m_client->chromeDestroyed();
395 } 401 }
396 402
397 } // namespace blink 403 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/Chrome.h ('k') | Source/core/page/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698