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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2672983003: Implements PrintBrowser mode. (Closed)
Patch Set: Rebase Created 3 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) 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 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 class LayoutBox; 82 class LayoutBox;
83 class LayoutEmbeddedObject; 83 class LayoutEmbeddedObject;
84 class LayoutObject; 84 class LayoutObject;
85 class LayoutReplaced; 85 class LayoutReplaced;
86 class LayoutScrollbarPart; 86 class LayoutScrollbarPart;
87 class LayoutView; 87 class LayoutView;
88 class PaintArtifactCompositor; 88 class PaintArtifactCompositor;
89 class PaintController; 89 class PaintController;
90 class PaintInvalidationState; 90 class PaintInvalidationState;
91 class Page; 91 class Page;
92 class PrintContext;
92 class ScrollingCoordinator; 93 class ScrollingCoordinator;
93 class TracedValue; 94 class TracedValue;
94 class TransformState; 95 class TransformState;
95 struct AnnotatedRegionValue; 96 struct AnnotatedRegionValue;
96 struct CompositedSelection; 97 struct CompositedSelection;
97 98
98 typedef unsigned long long DOMTimeStamp; 99 typedef unsigned long long DOMTimeStamp;
99 100
100 class CORE_EXPORT FrameView final 101 class CORE_EXPORT FrameView final
101 : public Widget, 102 : public Widget,
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 Scrollbar* createScrollbar(ScrollbarOrientation) override; 882 Scrollbar* createScrollbar(ScrollbarOrientation) override;
882 883
883 protected: 884 protected:
884 void destroyScrollbar(ScrollbarOrientation) override; 885 void destroyScrollbar(ScrollbarOrientation) override;
885 }; 886 };
886 887
887 void updateScrollOffset(const ScrollOffset&, ScrollType) override; 888 void updateScrollOffset(const ScrollOffset&, ScrollType) override;
888 889
889 void updateScrollbarEnabledState(); 890 void updateScrollbarEnabledState();
890 891
892 void dispatchEventsForPrintingOnAllFrames();
893
894 void setupPrintContext();
895 void clearPrintContext();
896
891 void updateLifecyclePhasesInternal( 897 void updateLifecyclePhasesInternal(
892 DocumentLifecycle::LifecycleState targetState); 898 DocumentLifecycle::LifecycleState targetState);
893 899
894 void invalidateTreeIfNeededRecursive(); 900 void invalidateTreeIfNeededRecursive();
895 void scrollContentsIfNeededRecursive(); 901 void scrollContentsIfNeededRecursive();
896 void updateStyleAndLayoutIfNeededRecursive(); 902 void updateStyleAndLayoutIfNeededRecursive();
897 void prePaint(); 903 void prePaint();
898 void paintTree(); 904 void paintTree();
899 void paintGraphicsLayerRecursively(GraphicsLayer*); 905 void paintGraphicsLayerRecursively(GraphicsLayer*);
900 906
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 // due to layout object properties. e.g. opacity, transform. 1201 // due to layout object properties. e.g. opacity, transform.
1196 // The size of the vector depends on the number of 1202 // The size of the vector depends on the number of
1197 // main thread scrolling reasons. 1203 // main thread scrolling reasons.
1198 Vector<int> m_mainThreadScrollingReasonsCounter; 1204 Vector<int> m_mainThreadScrollingReasonsCounter;
1199 1205
1200 // TODO(kenrb): Remove these when https://crbug.com/680606 is resolved. 1206 // TODO(kenrb): Remove these when https://crbug.com/680606 is resolved.
1201 std::unique_ptr<CompositorAnimationTimeline> m_animationTimeline; 1207 std::unique_ptr<CompositorAnimationTimeline> m_animationTimeline;
1202 std::unique_ptr<CompositorAnimationHost> m_animationHost; 1208 std::unique_ptr<CompositorAnimationHost> m_animationHost;
1203 1209
1204 std::unique_ptr<GeometryMapper> m_geometryMapper; 1210 std::unique_ptr<GeometryMapper> m_geometryMapper;
1211
1212 Member<PrintContext> m_printContext;
1205 }; 1213 };
1206 1214
1207 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) { 1215 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) {
1208 if (m_isVisuallyNonEmpty) 1216 if (m_isVisuallyNonEmpty)
1209 return; 1217 return;
1210 m_visuallyNonEmptyCharacterCount += count; 1218 m_visuallyNonEmptyCharacterCount += count;
1211 // Use a threshold value to prevent very small amounts of visible content from 1219 // Use a threshold value to prevent very small amounts of visible content from
1212 // triggering didMeaningfulLayout. The first few hundred characters rarely 1220 // triggering didMeaningfulLayout. The first few hundred characters rarely
1213 // contain the interesting content of the page. 1221 // contain the interesting content of the page.
1214 static const unsigned visualCharacterThreshold = 200; 1222 static const unsigned visualCharacterThreshold = 200;
(...skipping 20 matching lines...) Expand all
1235 widget.isFrameView()); 1243 widget.isFrameView());
1236 DEFINE_TYPE_CASTS(FrameView, 1244 DEFINE_TYPE_CASTS(FrameView,
1237 ScrollableArea, 1245 ScrollableArea,
1238 scrollableArea, 1246 scrollableArea,
1239 scrollableArea->isFrameView(), 1247 scrollableArea->isFrameView(),
1240 scrollableArea.isFrameView()); 1248 scrollableArea.isFrameView());
1241 1249
1242 } // namespace blink 1250 } // namespace blink
1243 1251
1244 #endif // FrameView_h 1252 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698