| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SimWebViewClient_h | 5 #ifndef SimWebViewClient_h |
| 6 #define SimWebViewClient_h | 6 #define SimWebViewClient_h |
| 7 | 7 |
| 8 #include "web/tests/FrameTestHelpers.h" | 8 #include "web/tests/FrameTestHelpers.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 int VisuallyNonEmptyLayoutCount() const { | 22 int VisuallyNonEmptyLayoutCount() const { |
| 23 return visually_non_empty_layout_count_; | 23 return visually_non_empty_layout_count_; |
| 24 } | 24 } |
| 25 int FinishedParsingLayoutCount() const { | 25 int FinishedParsingLayoutCount() const { |
| 26 return finished_parsing_layout_count_; | 26 return finished_parsing_layout_count_; |
| 27 } | 27 } |
| 28 int FinishedLoadingLayoutCount() const { | 28 int FinishedLoadingLayoutCount() const { |
| 29 return finished_loading_layout_count_; | 29 return finished_loading_layout_count_; |
| 30 } | 30 } |
| 31 | 31 |
| 32 WebView* CreateView(WebLocalFrame* opener, |
| 33 const WebURLRequest&, |
| 34 const WebWindowFeatures&, |
| 35 const WebString& name, |
| 36 WebNavigationPolicy, |
| 37 bool) override; |
| 38 |
| 32 private: | 39 private: |
| 33 // WebWidgetClient overrides. | 40 // WebWidgetClient overrides. |
| 34 void DidMeaningfulLayout(WebMeaningfulLayout) override; | 41 void DidMeaningfulLayout(WebMeaningfulLayout) override; |
| 35 | 42 |
| 36 int visually_non_empty_layout_count_; | 43 int visually_non_empty_layout_count_; |
| 37 int finished_parsing_layout_count_; | 44 int finished_parsing_layout_count_; |
| 38 int finished_loading_layout_count_; | 45 int finished_loading_layout_count_; |
| 39 | 46 |
| 40 WebLayerTreeView* layer_tree_view_; | 47 WebLayerTreeView* layer_tree_view_; |
| 48 FrameTestHelpers::WebViewHelper web_view_helper_; |
| 41 }; | 49 }; |
| 42 | 50 |
| 43 } // namespace blink | 51 } // namespace blink |
| 44 | 52 |
| 45 #endif | 53 #endif |
| OLD | NEW |