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

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

Issue 879993004: Remove ScrollableArea and Scrollbar (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/EditorCommand.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 10 matching lines...) Expand all
21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA. 22 Boston, MA 02110-1301, USA.
23 */ 23 */
24 24
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/Widget.h" 32 #include "sky/engine/platform/Widget.h"
32 #include "sky/engine/platform/geometry/LayoutRect.h" 33 #include "sky/engine/platform/geometry/LayoutRect.h"
33 #include "sky/engine/platform/graphics/Color.h" 34 #include "sky/engine/platform/graphics/Color.h"
34 #include "sky/engine/platform/scroll/ScrollableArea.h" 35 #include "sky/engine/platform/scroll/ScrollTypes.h"
35 #include "sky/engine/wtf/Forward.h" 36 #include "sky/engine/wtf/Forward.h"
36 #include "sky/engine/wtf/HashSet.h" 37 #include "sky/engine/wtf/HashSet.h"
37 #include "sky/engine/wtf/OwnPtr.h" 38 #include "sky/engine/wtf/OwnPtr.h"
38 #include "sky/engine/wtf/text/WTFString.h" 39 #include "sky/engine/wtf/text/WTFString.h"
39 40
40 namespace blink { 41 namespace blink {
41 42
42 class DocumentLifecycle; 43 class DocumentLifecycle;
43 class Cursor; 44 class Cursor;
44 class Element; 45 class Element;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 IntPoint convertFromRenderer(const RenderObject&, const IntPoint&) const; 149 IntPoint convertFromRenderer(const RenderObject&, const IntPoint&) const;
149 IntPoint convertToRenderer(const RenderObject&, const IntPoint&) const; 150 IntPoint convertToRenderer(const RenderObject&, const IntPoint&) const;
150 151
151 bool shouldSetCursor() const; 152 bool shouldSetCursor() const;
152 153
153 void setCursor(const Cursor&); 154 void setCursor(const Cursor&);
154 155
155 // FIXME: Remove this method once plugin loading is decoupled from layout. 156 // FIXME: Remove this method once plugin loading is decoupled from layout.
156 void flushAnyPendingPostLayoutTasks(); 157 void flushAnyPendingPostLayoutTasks();
157 158
158 typedef HashSet<ScrollableArea*> ScrollableAreaSet;
159 void addScrollableArea(ScrollableArea*);
160 void removeScrollableArea(ScrollableArea*);
161 const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas. get(); }
162
163 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; } 159 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; }
164 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } 160 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; }
165 161
166 bool isActive() const; 162 bool isActive() const;
167 163
168 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter 164 // FIXME: This should probably be renamed as the 'inSubtreeLayout' parameter
169 // passed around the FrameView layout methods can be true while this returns 165 // passed around the FrameView layout methods can be true while this returns
170 // false. 166 // false.
171 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; } 167 bool isSubtreeLayout() const { return !!m_layoutSubtreeRoot; }
172 168
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 bool m_overflowStatusDirty; 237 bool m_overflowStatusDirty;
242 bool m_horizontalOverflow; 238 bool m_horizontalOverflow;
243 bool m_verticalOverflow; 239 bool m_verticalOverflow;
244 RenderObject* m_viewportRenderer; 240 RenderObject* m_viewportRenderer;
245 241
246 double m_lastPaintTime; 242 double m_lastPaintTime;
247 243
248 RefPtr<Node> m_nodeToDraw; 244 RefPtr<Node> m_nodeToDraw;
249 bool m_isPainting; 245 bool m_isPainting;
250 246
251 OwnPtr<ScrollableAreaSet> m_scrollableAreas;
252
253 bool m_hasSoftwareFilters; 247 bool m_hasSoftwareFilters;
254 248
255 float m_visibleContentScaleFactor; 249 float m_visibleContentScaleFactor;
256 IntSize m_inputEventsOffsetForEmulation; 250 IntSize m_inputEventsOffsetForEmulation;
257 float m_inputEventsScaleFactorForEmulation; 251 float m_inputEventsScaleFactorForEmulation;
258 252
259 IntSize m_layoutSize; 253 IntSize m_layoutSize;
260 bool m_layoutSizeFixedToFrameSize; 254 bool m_layoutSizeFixedToFrameSize;
261 255
262 Vector<IntRect> m_tickmarks; 256 Vector<IntRect> m_tickmarks;
263 }; 257 };
264 258
265 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 259 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
266 260
267 } // namespace blink 261 } // namespace blink
268 262
269 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_ 263 #endif // SKY_ENGINE_CORE_FRAME_FRAMEVIEW_H_
OLDNEW
« no previous file with comments | « sky/engine/core/editing/EditorCommand.cpp ('k') | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698