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

Side by Side Diff: sky/engine/core/frame/FrameView.h

Issue 878303002: Remove more scrolling code from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/editing/VisibleUnits.cpp ('k') | sky/engine/core/frame/FrameView.cpp » ('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 14 matching lines...) Expand all
25 #ifndef SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_ 25 #ifndef SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_
26 #define SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_ 26 #define SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_
27 27
28 #include "gen/sky/platform/RuntimeEnabledFeatures.h" 28 #include "gen/sky/platform/RuntimeEnabledFeatures.h"
29 #include "sky/engine/core/rendering/PaintPhase.h" 29 #include "sky/engine/core/rendering/PaintPhase.h"
30 #include "sky/engine/platform/HostWindow.h" 30 #include "sky/engine/platform/HostWindow.h"
31 #include "sky/engine/platform/Timer.h" 31 #include "sky/engine/platform/Timer.h"
32 #include "sky/engine/platform/Widget.h" 32 #include "sky/engine/platform/Widget.h"
33 #include "sky/engine/platform/geometry/LayoutRect.h" 33 #include "sky/engine/platform/geometry/LayoutRect.h"
34 #include "sky/engine/platform/graphics/Color.h" 34 #include "sky/engine/platform/graphics/Color.h"
35 #include "sky/engine/platform/scroll/ScrollTypes.h"
36 #include "sky/engine/wtf/Forward.h" 35 #include "sky/engine/wtf/Forward.h"
37 #include "sky/engine/wtf/HashSet.h" 36 #include "sky/engine/wtf/HashSet.h"
38 #include "sky/engine/wtf/OwnPtr.h" 37 #include "sky/engine/wtf/OwnPtr.h"
39 #include "sky/engine/wtf/text/WTFString.h" 38 #include "sky/engine/wtf/text/WTFString.h"
40 39
41 namespace blink { 40 namespace blink {
42 41
43 class DocumentLifecycle; 42 class DocumentLifecycle;
44 class Cursor; 43 class Cursor;
45 class Element; 44 class Element;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 82
84 RenderObject* layoutRoot(bool onlyDuringLayout = false) const; 83 RenderObject* layoutRoot(bool onlyDuringLayout = false) const;
85 void clearLayoutSubtreeRoot() { m_layoutSubtreeRoot = 0; } 84 void clearLayoutSubtreeRoot() { m_layoutSubtreeRoot = 0; }
86 int layoutCount() const { return m_layoutCount; } 85 int layoutCount() const { return m_layoutCount; }
87 86
88 bool needsLayout() const; 87 bool needsLayout() const;
89 void setNeedsLayout(); 88 void setNeedsLayout();
90 89
91 // Methods for getting/setting the size Blink should use to layout the conte nts. 90 // Methods for getting/setting the size Blink should use to layout the conte nts.
92 // FIXME(sky): Remove the scrollbars argument now that FrameView doesn't scr oll. 91 // FIXME(sky): Remove the scrollbars argument now that FrameView doesn't scr oll.
93 IntSize layoutSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; 92 IntSize layoutSize() const;
94 void setLayoutSize(const IntSize&); 93 void setLayoutSize(const IntSize&);
95 94
96 // If this is set to false, the layout size will need to be explicitly set b y the owner. 95 // If this is set to false, the layout size will need to be explicitly set b y the owner.
97 // E.g. WebViewImpl sets its mainFrame's layout size manually 96 // E.g. WebViewImpl sets its mainFrame's layout size manually
98 void setLayoutSizeFixedToFrameSize(bool isFixed) { m_layoutSizeFixedToFrameS ize = isFixed; } 97 void setLayoutSizeFixedToFrameSize(bool isFixed) { m_layoutSizeFixedToFrameS ize = isFixed; }
99 bool layoutSizeFixedToFrameSize() { return m_layoutSizeFixedToFrameSize; } 98 bool layoutSizeFixedToFrameSize() { return m_layoutSizeFixedToFrameSize; }
100 99
101 void recalcOverflowAfterStyleChange(); 100 void recalcOverflowAfterStyleChange();
102 101
103 bool isEnclosedInCompositingLayer() const; 102 bool isEnclosedInCompositingLayer() const;
104 103
105 void prepareForDetach(); 104 void prepareForDetach();
106 105
107 void clear(); 106 void clear();
108 107
109 bool isTransparent() const; 108 bool isTransparent() const;
110 void setTransparent(bool isTransparent); 109 void setTransparent(bool isTransparent);
111 110
112 Color baseBackgroundColor() const; 111 Color baseBackgroundColor() const;
113 void setBaseBackgroundColor(const Color&); 112 void setBaseBackgroundColor(const Color&);
114 void updateBackgroundRecursively(const Color&, bool); 113 void updateBackgroundRecursively(const Color&, bool);
115 114
116 IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars) const; 115 IntRect windowClipRect() const;
117 116
118 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; } 117 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor ; }
119 void setVisibleContentScaleFactor(float); 118 void setVisibleContentScaleFactor(float);
120 119
121 float inputEventsScaleFactor() const; 120 float inputEventsScaleFactor() const;
122 IntSize inputEventsOffsetForEmulation() const; 121 IntSize inputEventsOffsetForEmulation() const;
123 void setInputEventsTransformForEmulation(const IntSize&, float); 122 void setInputEventsTransformForEmulation(const IntSize&, float);
124 123
125 AtomicString mediaType() const; 124 AtomicString mediaType() const;
126 void setMediaType(const AtomicString&); 125 void setMediaType(const AtomicString&);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // passed around the FrameView layout methods can be true while this returns 164 // passed around the FrameView layout methods can be true while this returns
166 // false. 165 // false.
167 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } 166 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; }
168 167
169 // FIXME(sky): remove 168 // FIXME(sky): remove
170 IntPoint windowToContents(const IntPoint& windowPoint) const { return window Point; } 169 IntPoint windowToContents(const IntPoint& windowPoint) const { return window Point; }
171 IntPoint contentsToWindow(const IntPoint& contentsPoint) const { return cont entsPoint; } 170 IntPoint contentsToWindow(const IntPoint& contentsPoint) const { return cont entsPoint; }
172 IntRect windowToContents(const IntRect& windowRect) const { return windowRec t; } 171 IntRect windowToContents(const IntRect& windowRect) const { return windowRec t; }
173 IntRect contentsToWindow(const IntRect& contentsRect) const { return content sRect; } 172 IntRect contentsToWindow(const IntRect& contentsRect) const { return content sRect; }
174 173
175 IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollbars) cons t { return IntRect(IntPoint(), expandedIntSize(frameRect().size())); } 174 IntRect visibleContentRect() const { return IntRect(IntPoint(), expandedIntS ize(frameRect().size())); }
176 IntSize unscaledVisibleContentSize(IncludeScrollbarsInRect = ExcludeScrollba rs) const { return frameRect().size(); } 175 IntSize unscaledVisibleContentSize() const { return frameRect().size(); }
177 // FIXME(sky): Not clear what values these should return. This is just what they happen to be 176 // FIXME(sky): Not clear what values these should return. This is just what they happen to be
178 // returning today. 177 // returning today.
179 bool paintsEntireContents() const { return false; } 178 bool paintsEntireContents() const { return false; }
180 179
181 // For inspector reporting: 180 // For inspector reporting:
182 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& total Objects, bool& isPartial); 181 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& total Objects, bool& isPartial);
183 182
184 protected: 183 protected:
185 bool isVerticalDocument() const; 184 bool isVerticalDocument() const;
186 bool isFlippedDocument() const; 185 bool isFlippedDocument() const;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 bool m_layoutSizeFixedToFrameSize; 253 bool m_layoutSizeFixedToFrameSize;
255 254
256 Vector<IntRect> m_tickmarks; 255 Vector<IntRect> m_tickmarks;
257 }; 256 };
258 257
259 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 258 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
260 259
261 } // namespace blink 260 } // namespace blink
262 261
263 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_ 262 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_
OLDNEW
« no previous file with comments | « sky/engine/core/editing/VisibleUnits.cpp ('k') | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698