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

Side by Side Diff: Source/web/tests/FrameTestHelpers.h

Issue 591413004: Send initializeChildFrame from RenderFrameProxy instead of WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move initializeReplacementFrame to WebRemoteFrame Created 6 years, 2 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/web/WebRemoteFrameImpl.cpp ('k') | public/web/WebRemoteFrame.h » ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Minimal implementation of WebRemoteFrameClient needed for unit tests that loa d remote frames. Tests that load 112 // Minimal implementation of WebRemoteFrameClient needed for unit tests that loa d remote frames. Tests that load
113 // frames and need further specialization of WebFrameClient behavior should subc lass this. 113 // frames and need further specialization of WebFrameClient behavior should subc lass this.
114 class TestWebRemoteFrameClient : public WebRemoteFrameClient { 114 class TestWebRemoteFrameClient : public WebRemoteFrameClient {
115 public: 115 public:
116 // Notifies the embedder that a postMessage was issued to a remote frame. 116 // Notifies the embedder that a postMessage was issued to a remote frame.
117 virtual void postMessageEvent( 117 virtual void postMessageEvent(
118 WebLocalFrame* sourceFrame, 118 WebLocalFrame* sourceFrame,
119 WebRemoteFrame* targetFrame, 119 WebRemoteFrame* targetFrame,
120 WebSecurityOrigin targetOrigin, 120 WebSecurityOrigin targetOrigin,
121 WebDOMMessageEvent) { } 121 WebDOMMessageEvent) { }
122
123 // Send initial drawing parameters to a child frame that is being rendered
124 // out of process.
125 virtual void initializeChildFrame(
126 const WebRect& frameRect,
127 float scaleFactor) { }
dcheng 2014/09/24 23:31:19 This shouldn't be necessary. We usually give new W
122 }; 128 };
123 129
124 class TestWebViewClient : public WebViewClient { 130 class TestWebViewClient : public WebViewClient {
125 public: 131 public:
126 virtual ~TestWebViewClient() { } 132 virtual ~TestWebViewClient() { }
127 virtual void initializeLayerTreeView() OVERRIDE; 133 virtual void initializeLayerTreeView() OVERRIDE;
128 virtual WebLayerTreeView* layerTreeView() OVERRIDE { return m_layerTreeView. get(); } 134 virtual WebLayerTreeView* layerTreeView() OVERRIDE { return m_layerTreeView. get(); }
129 135
130 private: 136 private:
131 OwnPtr<WebLayerTreeView> m_layerTreeView; 137 OwnPtr<WebLayerTreeView> m_layerTreeView;
132 }; 138 };
133 139
134 } // namespace FrameTestHelpers 140 } // namespace FrameTestHelpers
135 } // namespace blink 141 } // namespace blink
136 142
137 #endif // FrameTestHelpers_h 143 #endif // FrameTestHelpers_h
OLDNEW
« no previous file with comments | « Source/web/WebRemoteFrameImpl.cpp ('k') | public/web/WebRemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698