| 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 { |
| 11 | 11 |
| 12 class WebLayerTreeView; | 12 class WebLayerTreeView; |
| 13 | 13 |
| 14 class SimWebViewClient final : public FrameTestHelpers::TestWebViewClient { | 14 class SimWebViewClient final : public FrameTestHelpers::TestWebViewClient { |
| 15 public: | 15 public: |
| 16 explicit SimWebViewClient(WebLayerTreeView&); | 16 explicit SimWebViewClient(WebLayerTreeView&); |
| 17 | 17 |
| 18 WebLayerTreeView* layerTreeView() override { return m_layerTreeView; } | 18 WebLayerTreeView* layerTreeView() override { return m_layerTreeView; } |
| 19 | 19 |
| 20 bool hadVisuallyNonEmptyLayout() const { return m_hadVisuallyNonEmptyLayout;
} | 20 int visuallyNonEmptyLayoutCount() const { return m_visuallyNonEmptyLayoutCou
nt; } |
| 21 bool hadFinishedParsingLayout() const { return m_hadFinishedParsingLayout; } | 21 int finishedParsingLayoutCount() const { return m_finishedParsingLayoutCount
; } |
| 22 bool hadFinishedLoadingLayout() const { return m_hadFinishedLoadingLayout; } | 22 int finishedLoadingLayoutCount() const { return m_finishedLoadingLayoutCount
; } |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 // WebWidgetClient overrides. | 25 // WebWidgetClient overrides. |
| 26 void didMeaningfulLayout(WebMeaningfulLayout) override; | 26 void didMeaningfulLayout(WebMeaningfulLayout) override; |
| 27 | 27 |
| 28 bool m_hadVisuallyNonEmptyLayout; | 28 int m_visuallyNonEmptyLayoutCount; |
| 29 bool m_hadFinishedParsingLayout; | 29 int m_finishedParsingLayoutCount; |
| 30 bool m_hadFinishedLoadingLayout; | 30 int m_finishedLoadingLayoutCount; |
| 31 | 31 |
| 32 WebLayerTreeView* m_layerTreeView; | 32 WebLayerTreeView* m_layerTreeView; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace blink | 35 } // namespace blink |
| 36 | 36 |
| 37 #endif | 37 #endif |
| OLD | NEW |