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

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2536723007: Removed android scrolling fake mouse moves and device_supports_mouse (Closed)
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All
3 * Rights Reserved. 3 * Rights Reserved.
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 328
329 PageVisibilityState Page::visibilityState() const { 329 PageVisibilityState Page::visibilityState() const {
330 return m_visibilityState; 330 return m_visibilityState;
331 } 331 }
332 332
333 bool Page::isPageVisible() const { 333 bool Page::isPageVisible() const {
334 return visibilityState() == PageVisibilityStateVisible; 334 return visibilityState() == PageVisibilityStateVisible;
335 } 335 }
336 336
337 bool Page::isCursorVisible() const { 337 bool Page::isCursorVisible() const {
338 return m_isCursorVisible && settings().deviceSupportsMouse(); 338 return m_isCursorVisible;
339 } 339 }
340 340
341 void Page::settingsChanged(SettingsDelegate::ChangeType changeType) { 341 void Page::settingsChanged(SettingsDelegate::ChangeType changeType) {
342 switch (changeType) { 342 switch (changeType) {
343 case SettingsDelegate::StyleChange: 343 case SettingsDelegate::StyleChange:
344 setNeedsRecalcStyleInAllFrames(); 344 setNeedsRecalcStyleInAllFrames();
345 break; 345 break;
346 case SettingsDelegate::ViewportDescriptionChange: 346 case SettingsDelegate::ViewportDescriptionChange:
347 if (mainFrame() && mainFrame()->isLocalFrame()) { 347 if (mainFrame() && mainFrame()->isLocalFrame()) {
348 deprecatedLocalMainFrame()->document()->updateViewportDescription(); 348 deprecatedLocalMainFrame()->document()->updateViewportDescription();
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 : chromeClient(nullptr), 539 : chromeClient(nullptr),
540 contextMenuClient(nullptr), 540 contextMenuClient(nullptr),
541 editorClient(nullptr), 541 editorClient(nullptr),
542 spellCheckerClient(nullptr) {} 542 spellCheckerClient(nullptr) {}
543 543
544 Page::PageClients::~PageClients() {} 544 Page::PageClients::~PageClients() {}
545 545
546 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 546 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
547 547
548 } // namespace blink 548 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/MouseEventManager.cpp ('k') | third_party/WebKit/Source/web/DevToolsEmulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698