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

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: Made checks mirror what previous logic 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 324
325 PageVisibilityState Page::visibilityState() const { 325 PageVisibilityState Page::visibilityState() const {
326 return m_visibilityState; 326 return m_visibilityState;
327 } 327 }
328 328
329 bool Page::isPageVisible() const { 329 bool Page::isPageVisible() const {
330 return visibilityState() == PageVisibilityStateVisible; 330 return visibilityState() == PageVisibilityStateVisible;
331 } 331 }
332 332
333 bool Page::isCursorVisible() const { 333 bool Page::isCursorVisible() const {
334 return m_isCursorVisible && settings().deviceSupportsMouse(); 334 return m_isCursorVisible;
335 } 335 }
336 336
337 void Page::settingsChanged(SettingsDelegate::ChangeType changeType) { 337 void Page::settingsChanged(SettingsDelegate::ChangeType changeType) {
338 switch (changeType) { 338 switch (changeType) {
339 case SettingsDelegate::StyleChange: 339 case SettingsDelegate::StyleChange:
340 setNeedsRecalcStyleInAllFrames(); 340 setNeedsRecalcStyleInAllFrames();
341 break; 341 break;
342 case SettingsDelegate::ViewportDescriptionChange: 342 case SettingsDelegate::ViewportDescriptionChange:
343 if (mainFrame() && mainFrame()->isLocalFrame()) { 343 if (mainFrame() && mainFrame()->isLocalFrame()) {
344 deprecatedLocalMainFrame()->document()->updateViewportDescription(); 344 deprecatedLocalMainFrame()->document()->updateViewportDescription();
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 : chromeClient(nullptr), 535 : chromeClient(nullptr),
536 contextMenuClient(nullptr), 536 contextMenuClient(nullptr),
537 editorClient(nullptr), 537 editorClient(nullptr),
538 spellCheckerClient(nullptr) {} 538 spellCheckerClient(nullptr) {}
539 539
540 Page::PageClients::~PageClients() {} 540 Page::PageClients::~PageClients() {}
541 541
542 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 542 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
543 543
544 } // namespace blink 544 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698