| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 WebViewBase* InitializeRemote(TestWebRemoteFrameClient* = nullptr, | 259 WebViewBase* InitializeRemote(TestWebRemoteFrameClient* = nullptr, |
| 260 RefPtr<SecurityOrigin> = nullptr, | 260 RefPtr<SecurityOrigin> = nullptr, |
| 261 TestWebViewClient* = nullptr); | 261 TestWebViewClient* = nullptr); |
| 262 | 262 |
| 263 void Resize(WebSize); | 263 void Resize(WebSize); |
| 264 | 264 |
| 265 void Reset(); | 265 void Reset(); |
| 266 | 266 |
| 267 WebViewBase* WebView() const { return web_view_; } | 267 WebViewBase* WebView() const { return web_view_; } |
| 268 | 268 |
| 269 WebLocalFrameBase* LocalMainFrame(); | 269 WebLocalFrameBase* LocalMainFrame() const; |
| 270 WebRemoteFrameBase* RemoteMainFrame(); | 270 WebRemoteFrameBase* RemoteMainFrame() const; |
| 271 | 271 |
| 272 private: | 272 private: |
| 273 void InitializeWebView(TestWebViewClient*); | 273 void InitializeWebView(TestWebViewClient*); |
| 274 | 274 |
| 275 WebViewBase* web_view_; | 275 WebViewBase* web_view_; |
| 276 UseMockScrollbarSettings mock_scrollbar_settings_; | 276 UseMockScrollbarSettings mock_scrollbar_settings_; |
| 277 // Non-null if the WebViewHelper owns the TestWebViewClient. | 277 // Non-null if the WebViewHelper owns the TestWebViewClient. |
| 278 std::unique_ptr<TestWebViewClient> owned_test_web_view_client_; | 278 std::unique_ptr<TestWebViewClient> owned_test_web_view_client_; |
| 279 TestWebViewClient* test_web_view_client_; | 279 TestWebViewClient* test_web_view_client_; |
| 280 }; | 280 }; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 | 356 |
| 357 // This is null from when the client is created until it is initialized with | 357 // This is null from when the client is created until it is initialized with |
| 358 // Bind(). | 358 // Bind(). |
| 359 WebRemoteFrame* frame_ = nullptr; | 359 WebRemoteFrame* frame_ = nullptr; |
| 360 }; | 360 }; |
| 361 | 361 |
| 362 } // namespace FrameTestHelpers | 362 } // namespace FrameTestHelpers |
| 363 } // namespace blink | 363 } // namespace blink |
| 364 | 364 |
| 365 #endif // FrameTestHelpers_h | 365 #endif // FrameTestHelpers_h |
| OLD | NEW |