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

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

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, 11 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, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
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 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 float pageScaleFactor() const; 180 float pageScaleFactor() const;
181 181
182 float deviceScaleFactor() const { return m_deviceScaleFactor; } 182 float deviceScaleFactor() const { return m_deviceScaleFactor; }
183 void setDeviceScaleFactor(float); 183 void setDeviceScaleFactor(float);
184 void setDeviceColorProfile(const Vector<char>&); 184 void setDeviceColorProfile(const Vector<char>&);
185 void resetDeviceColorProfileForTesting(); 185 void resetDeviceColorProfileForTesting();
186 186
187 static void allVisitedStateChanged(bool invalidateVisitedLinkHashes); 187 static void allVisitedStateChanged(bool invalidateVisitedLinkHashes);
188 static void visitedStateChanged(LinkHash visitedHash); 188 static void visitedStateChanged(LinkHash visitedHash);
189 189
190 void setVisibilityState(PageVisibilityState, bool);
190 PageVisibilityState visibilityState() const; 191 PageVisibilityState visibilityState() const;
191 void setVisibilityState(PageVisibilityState, bool); 192 bool isPageVisible() const;
192 193
193 bool isCursorVisible() const; 194 bool isCursorVisible() const;
194 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } 195 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; }
195 196
196 #if ENABLE(ASSERT) 197 #if ENABLE(ASSERT)
197 void setIsPainting(bool painting) { m_isPainting = painting; } 198 void setIsPainting(bool painting) { m_isPainting = painting; }
198 bool isPainting() const { return m_isPainting; } 199 bool isPainting() const { return m_isPainting; }
199 #endif 200 #endif
200 201
201 class CORE_EXPORT MultisamplingChangedObserver : public WillBeGarbageCollect edMixin { 202 class CORE_EXPORT MultisamplingChangedObserver : public WillBeGarbageCollect edMixin {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController; 294 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController;
294 295
295 Timer<Page> m_timerForCompressStrings; 296 Timer<Page> m_timerForCompressStrings;
296 }; 297 };
297 298
298 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 299 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
299 300
300 } // namespace blink 301 } // namespace blink
301 302
302 #endif // Page_h 303 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698