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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTestHelper.h

Issue 2715173002: Final rename from FrameLoaderClient to LocalFrameClient: (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutTestHelper_h 5 #ifndef LayoutTestHelper_h
6 #define LayoutTestHelper_h 6 #define LayoutTestHelper_h
7 7
8 #include <gtest/gtest.h> 8 #include <gtest/gtest.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 static SingleChildLocalFrameClient* create() { 27 static SingleChildLocalFrameClient* create() {
28 return new SingleChildLocalFrameClient(); 28 return new SingleChildLocalFrameClient();
29 } 29 }
30 30
31 DEFINE_INLINE_VIRTUAL_TRACE() { 31 DEFINE_INLINE_VIRTUAL_TRACE() {
32 visitor->trace(m_child); 32 visitor->trace(m_child);
33 EmptyLocalFrameClient::trace(visitor); 33 EmptyLocalFrameClient::trace(visitor);
34 } 34 }
35 35
36 // FrameLoaderClient overrides: 36 // LocalFrameClient overrides:
37 LocalFrame* firstChild() const override { return m_child.get(); } 37 LocalFrame* firstChild() const override { return m_child.get(); }
38 LocalFrame* createFrame(const FrameLoadRequest&, 38 LocalFrame* createFrame(const FrameLoadRequest&,
39 const AtomicString& name, 39 const AtomicString& name,
40 HTMLFrameOwnerElement*) override; 40 HTMLFrameOwnerElement*) override;
41 41
42 void didDetachChild() { m_child = nullptr; } 42 void didDetachChild() { m_child = nullptr; }
43 43
44 private: 44 private:
45 explicit SingleChildLocalFrameClient() {} 45 explicit SingleChildLocalFrameClient() {}
46 46
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 LayoutObject* getLayoutObjectByElementId(const char* id) const { 112 LayoutObject* getLayoutObjectByElementId(const char* id) const {
113 Node* node = document().getElementById(id); 113 Node* node = document().getElementById(id);
114 return node ? node->layoutObject() : nullptr; 114 return node ? node->layoutObject() : nullptr;
115 } 115 }
116 116
117 void loadAhem(); 117 void loadAhem();
118 118
119 private: 119 private:
120 Persistent<FrameLoaderClient> m_frameLoaderClient; 120 Persistent<LocalFrameClient> m_localFrameClient;
121 std::unique_ptr<DummyPageHolder> m_pageHolder; 121 std::unique_ptr<DummyPageHolder> m_pageHolder;
122 }; 122 };
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // LayoutTestHelper_h 126 #endif // LayoutTestHelper_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698