Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 void postMessageEvent( | 161 void postMessageEvent( |
| 162 WebLocalFrame* sourceFrame, | 162 WebLocalFrame* sourceFrame, |
| 163 WebRemoteFrame* targetFrame, | 163 WebRemoteFrame* targetFrame, |
| 164 WebSecurityOrigin targetOrigin, | 164 WebSecurityOrigin targetOrigin, |
| 165 WebDOMMessageEvent) override { } | 165 WebDOMMessageEvent) override { } |
| 166 | 166 |
| 167 private: | 167 private: |
| 168 RawPtrWillBePersistent<WebRemoteFrameImpl> const m_frame; | 168 RawPtrWillBePersistent<WebRemoteFrameImpl> const m_frame; |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 class TestWebRemoteFrameClientForVisibility : public TestWebRemoteFrameClient { | |
|
dcheng
2016/01/11 19:07:59
Put this directly in WebFrameTest.cpp: no need to
EhsanK
2016/06/09 17:42:53
Done.
| |
| 172 public: | |
| 173 TestWebRemoteFrameClientForVisibility(); | |
| 174 void visibilityChanged(bool visible) override { m_visible = visible; } | |
| 175 | |
| 176 bool isVisible() const { return m_visible; } | |
| 177 | |
| 178 private: | |
| 179 bool m_visible; | |
| 180 }; | |
| 181 | |
| 171 class TestWebViewClient : public WebViewClient { | 182 class TestWebViewClient : public WebViewClient { |
| 172 public: | 183 public: |
| 173 virtual ~TestWebViewClient() { } | 184 virtual ~TestWebViewClient() { } |
| 174 void initializeLayerTreeView() override; | 185 void initializeLayerTreeView() override; |
| 175 WebLayerTreeView* layerTreeView() override { return m_layerTreeView.get(); } | 186 WebLayerTreeView* layerTreeView() override { return m_layerTreeView.get(); } |
| 176 | 187 |
| 177 private: | 188 private: |
| 178 OwnPtr<WebLayerTreeView> m_layerTreeView; | 189 OwnPtr<WebLayerTreeView> m_layerTreeView; |
| 179 }; | 190 }; |
| 180 | 191 |
| 181 } // namespace FrameTestHelpers | 192 } // namespace FrameTestHelpers |
| 182 } // namespace blink | 193 } // namespace blink |
| 183 | 194 |
| 184 #endif // FrameTestHelpers_h | 195 #endif // FrameTestHelpers_h |
| OLD | NEW |