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

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

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update LayoutTests for new properties Created 5 years, 7 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 | « Source/core/events/EventTypeNames.in ('k') | Source/core/frame/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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame); 95 Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame);
96 Frame* findUnsafeParentScrollPropagationBoundary(); 96 Frame* findUnsafeParentScrollPropagationBoundary();
97 97
98 void finishSwapFrom(Frame*); 98 void finishSwapFrom(Frame*);
99 99
100 bool canNavigate(const Frame&); 100 bool canNavigate(const Frame&);
101 virtual void printNavigationErrorMessage(const Frame&, const char* reason) = 0; 101 virtual void printNavigationErrorMessage(const Frame&, const char* reason) = 0;
102 102
103 LayoutPart* ownerLayoutObject() const; // LayoutObject for the element that contains this frame. 103 LayoutPart* ownerLayoutObject() const; // LayoutObject for the element that contains this frame.
104 104
105 int64_t frameID() const { return m_frameID; }
106
105 Settings* settings() const; // can be null 107 Settings* settings() const; // can be null
106 108
107 // isLoading() is true when the embedder should think a load is in progress. 109 // isLoading() is true when the embedder should think a load is in progress.
108 // In the case of LocalFrames, it means that the frame has sent a didStartLo ading() 110 // In the case of LocalFrames, it means that the frame has sent a didStartLo ading()
109 // callback, but not the matching didStopLoading(). Inside blink, you probab ly 111 // callback, but not the matching didStopLoading(). Inside blink, you probab ly
110 // want Document::loadEventFinished() instead. 112 // want Document::loadEventFinished() instead.
111 void setIsLoading(bool isLoading) { m_isLoading = isLoading; } 113 void setIsLoading(bool isLoading) { m_isLoading = isLoading; }
112 bool isLoading() const { return m_isLoading; } 114 bool isLoading() const { return m_isLoading; }
113 virtual bool isLoadingAsChild() const { return isLoading(); } 115 virtual bool isLoadingAsChild() const { return isLoading(); }
114 116
115 protected: 117 protected:
116 Frame(FrameClient*, FrameHost*, FrameOwner*); 118 Frame(FrameClient*, FrameHost*, FrameOwner*);
117 119
118 virtual WindowProxyManager* windowProxyManager() const = 0; 120 virtual WindowProxyManager* windowProxyManager() const = 0;
119 121
120 mutable FrameTree m_treeNode; 122 mutable FrameTree m_treeNode;
121 123
122 RawPtrWillBeMember<FrameHost> m_host; 124 RawPtrWillBeMember<FrameHost> m_host;
123 RawPtrWillBeMember<FrameOwner> m_owner; 125 RawPtrWillBeMember<FrameOwner> m_owner;
124 126
125 private: 127 private:
126 FrameClient* m_client; 128 FrameClient* m_client;
129 // Needed to identify Frame Timing requests.
130 int64_t m_frameID;
127 bool m_isLoading; 131 bool m_isLoading;
128 }; 132 };
129 133
130 inline FrameClient* Frame::client() const 134 inline FrameClient* Frame::client() const
131 { 135 {
132 return m_client; 136 return m_client;
133 } 137 }
134 138
135 inline FrameOwner* Frame::owner() const 139 inline FrameOwner* Frame::owner() const
136 { 140 {
137 return m_owner; 141 return m_owner;
138 } 142 }
139 143
140 inline FrameTree& Frame::tree() const 144 inline FrameTree& Frame::tree() const
141 { 145 {
142 return m_treeNode; 146 return m_treeNode;
143 } 147 }
144 148
145 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 149 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
146 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 150 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
147 151
148 } // namespace blink 152 } // namespace blink
149 153
150 #endif // Frame_h 154 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698