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

Side by Side Diff: Source/core/page/FrameView.h

Issue 16646002: Move the CSS Device Adaptation @viewport rule support behind a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/features.gypi ('k') | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 bool wheelEvent(const PlatformWheelEvent&); 321 bool wheelEvent(const PlatformWheelEvent&);
322 322
323 // Page and FrameView both store a Pagination value. Page::pagination() is s et only by API, 323 // Page and FrameView both store a Pagination value. Page::pagination() is s et only by API,
324 // and FrameView::pagination() is set only by CSS. Page::pagination() will a ffect all 324 // and FrameView::pagination() is set only by CSS. Page::pagination() will a ffect all
325 // FrameViews in the page cache, but FrameView::pagination() only affects th e current 325 // FrameViews in the page cache, but FrameView::pagination() only affects th e current
326 // FrameView. FrameView::pagination() will return m_pagination if it has bee n set. Otherwise, 326 // FrameView. FrameView::pagination() will return m_pagination if it has bee n set. Otherwise,
327 // it will return Page::pagination() since currently there are no callers th at need to 327 // it will return Page::pagination() since currently there are no callers th at need to
328 // distinguish between the two. 328 // distinguish between the two.
329 const Pagination& pagination() const; 329 const Pagination& pagination() const;
330 void setPagination(const Pagination&); 330 void setPagination(const Pagination&);
331 331
332 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; } 332 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; }
333 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro ll = programmaticScroll; } 333 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro ll = programmaticScroll; }
334 334
335 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; } 335 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; }
336 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } 336 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; }
337 #if ENABLE(CSS_DEVICE_ADAPTATION)
338 IntSize initialViewportSize() const { return m_initialViewportSize; }
339 void setInitialViewportSize(const IntSize& size) { m_initialViewportSize = s ize; }
340 #endif
341 337
342 virtual bool isActive() const OVERRIDE; 338 virtual bool isActive() const OVERRIDE;
343 339
344 #if ENABLE(RUBBER_BANDING) 340 #if ENABLE(RUBBER_BANDING)
345 GraphicsLayer* setWantsLayerForTopOverHangArea(bool) const; 341 GraphicsLayer* setWantsLayerForTopOverHangArea(bool) const;
346 GraphicsLayer* setWantsLayerForBottomOverHangArea(bool) const; 342 GraphicsLayer* setWantsLayerForBottomOverHangArea(bool) const;
347 #endif 343 #endif
348 344
349 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. 345 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead.
350 IntSize scrollOffsetForFixedPosition() const; 346 IntSize scrollOffsetForFixedPosition() const;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 OwnPtr<ScrollableAreaSet> m_scrollableAreas; 526 OwnPtr<ScrollableAreaSet> m_scrollableAreas;
531 OwnPtr<ResizerAreaSet> m_resizerAreas; 527 OwnPtr<ResizerAreaSet> m_resizerAreas;
532 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; 528 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects;
533 529
534 static double s_normalDeferredRepaintDelay; 530 static double s_normalDeferredRepaintDelay;
535 static double s_initialDeferredRepaintDelayDuringLoading; 531 static double s_initialDeferredRepaintDelayDuringLoading;
536 static double s_maxDeferredRepaintDelayDuringLoading; 532 static double s_maxDeferredRepaintDelayDuringLoading;
537 static double s_deferredRepaintDelayIncrementDuringLoading; 533 static double s_deferredRepaintDelayIncrementDuringLoading;
538 534
539 bool m_hasSoftwareFilters; 535 bool m_hasSoftwareFilters;
540 #if ENABLE(CSS_DEVICE_ADAPTATION)
541 // Size of viewport before any UA or author styles have overridden 536 // Size of viewport before any UA or author styles have overridden
542 // the viewport given by the window or viewing area of the UA. 537 // the viewport given by the window or viewing area of the UA.
543 IntSize m_initialViewportSize; 538 IntSize m_initialViewportSize;
544 #endif
rune 2013/06/10 07:35:18 Is m_initialViewportSize used anymore?
545 539
546 float m_visibleContentScaleFactor; 540 float m_visibleContentScaleFactor;
547 }; 541 };
548 542
549 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) 543 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)
550 { 544 {
551 if (m_isVisuallyNonEmpty) 545 if (m_isVisuallyNonEmpty)
552 return; 546 return;
553 m_visuallyNonEmptyCharacterCount += count; 547 m_visuallyNonEmptyCharacterCount += count;
554 // Use a threshold value to prevent very small amounts of visible content fr om triggering didFirstVisuallyNonEmptyLayout. 548 // Use a threshold value to prevent very small amounts of visible content fr om triggering didFirstVisuallyNonEmptyLayout.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 ASSERT(!widget || widget->isFrameView()); 584 ASSERT(!widget || widget->isFrameView());
591 return static_cast<const FrameView*>(widget); 585 return static_cast<const FrameView*>(widget);
592 } 586 }
593 587
594 // This will catch anyone doing an unnecessary cast. 588 // This will catch anyone doing an unnecessary cast.
595 void toFrameView(const FrameView*); 589 void toFrameView(const FrameView*);
596 590
597 } // namespace WebCore 591 } // namespace WebCore
598 592
599 #endif // FrameView_h 593 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/core/features.gypi ('k') | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698