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

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

Issue 1631063002: Add isPageVisible to Page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Clean up Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } else if (m_timerForCompressStrings.isActive()) { 374 } else if (m_timerForCompressStrings.isActive()) {
375 m_timerForCompressStrings.stop(); 375 m_timerForCompressStrings.stop();
376 } 376 }
377 } 377 }
378 378
379 PageVisibilityState Page::visibilityState() const 379 PageVisibilityState Page::visibilityState() const
380 { 380 {
381 return m_visibilityState; 381 return m_visibilityState;
382 } 382 }
383 383
384 bool Page::isPageVisible() const
haraken 2016/01/25 22:54:31 const won't be needed in the cpp side.
ortuno 2016/01/25 23:36:34 not sure what you mean here? All functions that ha
haraken 2016/01/25 23:40:17 ah, sorry, you're right!
385 {
386 return visibilityState() == PageVisibilityStateVisible;
387 }
388
384 bool Page::isCursorVisible() const 389 bool Page::isCursorVisible() const
385 { 390 {
386 return m_isCursorVisible && settings().deviceSupportsMouse(); 391 return m_isCursorVisible && settings().deviceSupportsMouse();
387 } 392 }
388 393
389 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe r) 394 void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observe r)
390 { 395 {
391 m_multisamplingChangedObservers.add(observer); 396 m_multisamplingChangedObservers.add(observer);
392 } 397 }
393 398
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 { 607 {
603 } 608 }
604 609
605 Page::PageClients::~PageClients() 610 Page::PageClients::~PageClients()
606 { 611 {
607 } 612 }
608 613
609 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 614 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
610 615
611 } // namespace blink 616 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698