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

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

Issue 16509007: Cleanup constants for layerTreeAsText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: naming 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class Node; 55 class Node;
56 class Range; 56 class Range;
57 class RenderPart; 57 class RenderPart;
58 class RenderView; 58 class RenderView;
59 class TreeScope; 59 class TreeScope;
60 class ScriptController; 60 class ScriptController;
61 class Settings; 61 class Settings;
62 class TreeScope; 62 class TreeScope;
63 class VisiblePosition; 63 class VisiblePosition;
64 64
65 enum {
66 LayerTreeFlagsIncludeDebugInfo = 1 << 0,
67 LayerTreeFlagsIncludeVisibleRects = 1 << 1,
68 LayerTreeFlagsIncludeTileCaches = 1 << 2,
69 LayerTreeFlagsIncludeRepaintRects = 1 << 3,
70 LayerTreeFlagsIncludePaintingPhases = 1 << 4
71 };
72 typedef unsigned LayerTreeFlags;
73
74 class Frame : public RefCounted<Frame> { 65 class Frame : public RefCounted<Frame> {
75 public: 66 public:
76 static PassRefPtr<Frame> create(Page*, HTMLFrameOwnerElement*, FrameLoad erClient*); 67 static PassRefPtr<Frame> create(Page*, HTMLFrameOwnerElement*, FrameLoad erClient*);
77 68
78 void init(); 69 void init();
79 void setView(PassRefPtr<FrameView>); 70 void setView(PassRefPtr<FrameView>);
80 void createView(const IntSize&, const Color&, bool, 71 void createView(const IntSize&, const Color&, bool,
81 const IntSize& fixedLayoutSize = IntSize(), bool useFixedLayout = fa lse, ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, 72 const IntSize& fixedLayoutSize = IntSize(), bool useFixedLayout = fa lse, ScrollbarMode = ScrollbarAuto, bool horizontalLock = false,
82 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); 73 ScrollbarMode = ScrollbarAuto, bool verticalLock = false);
83 74
(...skipping 27 matching lines...) Expand all
111 RenderPart* ownerRenderer() const; // Renderer for the element that cont ains this frame. 102 RenderPart* ownerRenderer() const; // Renderer for the element that cont ains this frame.
112 103
113 void dispatchVisibilityStateChangeEvent(); 104 void dispatchVisibilityStateChangeEvent();
114 105
115 void reportMemoryUsage(MemoryObjectInfo*) const; 106 void reportMemoryUsage(MemoryObjectInfo*) const;
116 107
117 // ======== All public functions below this point are candidates to move out of Frame into another class. ======== 108 // ======== All public functions below this point are candidates to move out of Frame into another class. ========
118 109
119 bool inScope(TreeScope*) const; 110 bool inScope(TreeScope*) const;
120 111
121 String layerTreeAsText(LayerTreeFlags = 0) const; 112 // See GraphicsLayerClient.h for accepted flags.
113 String layerTreeAsText(unsigned flags = 0) const;
122 String trackedRepaintRectsAsText() const; 114 String trackedRepaintRectsAsText() const;
123 115
124 static Frame* frameForWidget(const Widget*); 116 static Frame* frameForWidget(const Widget*);
125 117
126 Settings* settings() const; // can be NULL 118 Settings* settings() const; // can be NULL
127 119
128 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot); 120 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot);
129 bool shouldUsePrintingLayout() const; 121 bool shouldUsePrintingLayout() const;
130 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize); 122 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize);
131 123
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 267 }
276 268
277 inline EventHandler* Frame::eventHandler() const 269 inline EventHandler* Frame::eventHandler() const
278 { 270 {
279 return m_eventHandler.get(); 271 return m_eventHandler.get();
280 } 272 }
281 273
282 } // namespace WebCore 274 } // namespace WebCore
283 275
284 #endif // Frame_h 276 #endif // Frame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698