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

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

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization Created 3 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 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
3 * reserved. 3 * 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 static void allVisitedStateChanged(bool invalidateVisitedLinkHashes); 206 static void allVisitedStateChanged(bool invalidateVisitedLinkHashes);
207 static void visitedStateChanged(LinkHash visitedHash); 207 static void visitedStateChanged(LinkHash visitedHash);
208 208
209 void setVisibilityState(PageVisibilityState, bool); 209 void setVisibilityState(PageVisibilityState, bool);
210 PageVisibilityState visibilityState() const; 210 PageVisibilityState visibilityState() const;
211 bool isPageVisible() const; 211 bool isPageVisible() const;
212 212
213 bool isCursorVisible() const; 213 bool isCursorVisible() const;
214 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } 214 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; }
215 215
216 #if ENABLE(ASSERT) 216 #if DCHECK_IS_ON()
217 void setIsPainting(bool painting) { m_isPainting = painting; } 217 void setIsPainting(bool painting) { m_isPainting = painting; }
218 bool isPainting() const { return m_isPainting; } 218 bool isPainting() const { return m_isPainting; }
219 #endif 219 #endif
220 220
221 void didCommitLoad(LocalFrame*); 221 void didCommitLoad(LocalFrame*);
222 222
223 void acceptLanguagesChanged(); 223 void acceptLanguagesChanged();
224 224
225 static void networkStateChanged(bool online); 225 static void networkStateChanged(bool online);
226 226
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 bool m_tabKeyCyclesThroughElements; 289 bool m_tabKeyCyclesThroughElements;
290 bool m_suspended; 290 bool m_suspended;
291 291
292 float m_deviceScaleFactor; 292 float m_deviceScaleFactor;
293 293
294 PageVisibilityState m_visibilityState; 294 PageVisibilityState m_visibilityState;
295 295
296 bool m_isCursorVisible; 296 bool m_isCursorVisible;
297 297
298 #if ENABLE(ASSERT) 298 #if DCHECK_IS_ON()
299 bool m_isPainting; 299 bool m_isPainting = false;
300 #endif 300 #endif
301 301
302 // A pointer to all the interfaces provided to in-process Frames for this 302 // A pointer to all the interfaces provided to in-process Frames for this
303 // Page. 303 // Page.
304 // FIXME: Most of the members of Page should move onto FrameHost. 304 // FIXME: Most of the members of Page should move onto FrameHost.
305 Member<FrameHost> m_frameHost; 305 Member<FrameHost> m_frameHost;
306 }; 306 };
307 307
308 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; 308 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>;
309 309
310 } // namespace blink 310 } // namespace blink
311 311
312 #endif // Page_h 312 #endif // Page_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698