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

Side by Side Diff: Source/WebCore/page/Frame.h

Issue 13818029: Remove TiledBacking / TileCache code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 7 years, 8 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/WebCore/page/ChromeClient.h ('k') | Source/WebCore/page/Frame.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 22 matching lines...) Expand all
33 #include "DragImage.h" 33 #include "DragImage.h"
34 #include "Editor.h" 34 #include "Editor.h"
35 #include "EventHandler.h" 35 #include "EventHandler.h"
36 #include "FrameLoader.h" 36 #include "FrameLoader.h"
37 #include "FrameSelection.h" 37 #include "FrameSelection.h"
38 #include "FrameTree.h" 38 #include "FrameTree.h"
39 #include "NavigationScheduler.h" 39 #include "NavigationScheduler.h"
40 #include "ScriptController.h" 40 #include "ScriptController.h"
41 #include "UserScriptTypes.h" 41 #include "UserScriptTypes.h"
42 42
43 #if USE(TILED_BACKING_STORE)
44 #include "TiledBackingStoreClient.h"
45 #endif
46
47 namespace WebCore { 43 namespace WebCore {
48 44
49 class Document; 45 class Document;
50 class FrameDestructionObserver; 46 class FrameDestructionObserver;
51 class FrameView; 47 class FrameView;
52 class HTMLTableCellElement; 48 class HTMLTableCellElement;
53 class RegularExpression; 49 class RegularExpression;
54 class RenderPart; 50 class RenderPart;
55 class TiledBackingStore;
56
57 #if !USE(TILED_BACKING_STORE)
58 class TiledBackingStoreClient { };
59 #endif
60 51
61 class TreeScope; 52 class TreeScope;
62 53
63 enum { 54 enum {
64 LayerTreeFlagsIncludeDebugInfo = 1 << 0, 55 LayerTreeFlagsIncludeDebugInfo = 1 << 0,
65 LayerTreeFlagsIncludeVisibleRects = 1 << 1, 56 LayerTreeFlagsIncludeVisibleRects = 1 << 1,
66 LayerTreeFlagsIncludeTileCaches = 1 << 2, 57 LayerTreeFlagsIncludeTileCaches = 1 << 2,
67 LayerTreeFlagsIncludeRepaintRects = 1 << 3, 58 LayerTreeFlagsIncludeRepaintRects = 1 << 3,
68 LayerTreeFlagsIncludePaintingPhases = 1 << 4 59 LayerTreeFlagsIncludePaintingPhases = 1 << 4
69 }; 60 };
70 typedef unsigned LayerTreeFlags; 61 typedef unsigned LayerTreeFlags;
71 62
72 class Frame : public RefCounted<Frame>, public TiledBackingStoreClient { 63 class Frame : public RefCounted<Frame> {
73 public: 64 public:
74 static PassRefPtr<Frame> create(Page*, HTMLFrameOwnerElement*, FrameLoad erClient*); 65 static PassRefPtr<Frame> create(Page*, HTMLFrameOwnerElement*, FrameLoad erClient*);
75 66
76 void init(); 67 void init();
77 void setView(PassRefPtr<FrameView>); 68 void setView(PassRefPtr<FrameView>);
78 void createView(const IntSize&, const Color&, bool, 69 void createView(const IntSize&, const Color&, bool,
79 const IntSize& fixedLayoutSize = IntSize(), const IntRect& fixedVisi bleContentRect = IntRect(), 70 const IntSize& fixedLayoutSize = IntSize(), const IntRect& fixedVisi bleContentRect = IntRect(),
80 bool useFixedLayout = false, ScrollbarMode = ScrollbarAuto, bool hor izontalLock = false, 71 bool useFixedLayout = false, ScrollbarMode = ScrollbarAuto, bool hor izontalLock = false,
81 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); 72 ScrollbarMode = ScrollbarAuto, bool verticalLock = false);
82 73
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 196
206 float m_pageZoomFactor; 197 float m_pageZoomFactor;
207 float m_textZoomFactor; 198 float m_textZoomFactor;
208 199
209 #if ENABLE(ORIENTATION_EVENTS) 200 #if ENABLE(ORIENTATION_EVENTS)
210 int m_orientation; 201 int m_orientation;
211 #endif 202 #endif
212 203
213 bool m_inViewSourceMode; 204 bool m_inViewSourceMode;
214 205
215 #if USE(TILED_BACKING_STORE)
216 // FIXME: The tiled backing store belongs in FrameView, not Frame.
217
218 public:
219 TiledBackingStore* tiledBackingStore() const { return m_tiledBackingStor e.get(); }
220 void setTiledBackingStoreEnabled(bool);
221
222 private:
223 // TiledBackingStoreClient interface
224 virtual void tiledBackingStorePaintBegin();
225 virtual void tiledBackingStorePaint(GraphicsContext*, const IntRect&);
226 virtual void tiledBackingStorePaintEnd(const Vector<IntRect>& paintedAre a);
227 virtual IntRect tiledBackingStoreContentsRect();
228 virtual IntRect tiledBackingStoreVisibleRect();
229 virtual Color tiledBackingStoreBackgroundColor() const;
230
231 OwnPtr<TiledBackingStore> m_tiledBackingStore;
232 #endif
233
234 int m_activeDOMObjectsAndAnimationsSuspendedCount; 206 int m_activeDOMObjectsAndAnimationsSuspendedCount;
235 }; 207 };
236 208
237 inline void Frame::init() 209 inline void Frame::init()
238 { 210 {
239 m_loader.init(); 211 m_loader.init();
240 } 212 }
241 213
242 inline FrameLoader* Frame::loader() const 214 inline FrameLoader* Frame::loader() const
243 { 215 {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } 282 }
311 283
312 inline EventHandler* Frame::eventHandler() const 284 inline EventHandler* Frame::eventHandler() const
313 { 285 {
314 return &m_eventHandler; 286 return &m_eventHandler;
315 } 287 }
316 288
317 } // namespace WebCore 289 } // namespace WebCore
318 290
319 #endif // Frame_h 291 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/WebCore/page/ChromeClient.h ('k') | Source/WebCore/page/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698