| 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 SimCompositor_h | 5 #ifndef SimCompositor_h |
| 6 #define SimCompositor_h | 6 #define SimCompositor_h |
| 7 | 7 |
| 8 #include "public/platform/WebLayerTreeView.h" | 8 #include "public/platform/WebLayerTreeView.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 void setWebViewImpl(WebViewImpl&); | 29 void setWebViewImpl(WebViewImpl&); |
| 30 | 30 |
| 31 // Execute the BeginMainFrame processing steps, an approximation of what | 31 // Execute the BeginMainFrame processing steps, an approximation of what |
| 32 // cc::ThreadProxy::BeginMainFrame would do. | 32 // cc::ThreadProxy::BeginMainFrame would do. |
| 33 SimDisplayItemList beginFrame(); | 33 SimDisplayItemList beginFrame(); |
| 34 | 34 |
| 35 bool needsAnimate() const { return m_needsAnimate; } | 35 bool needsAnimate() const { return m_needsAnimate; } |
| 36 bool deferCommits() const { return m_deferCommits; } | 36 bool deferCommits() const { return m_deferCommits; } |
| 37 | 37 |
| 38 bool hasSelection() const { return m_hasSelection; } |
| 39 |
| 38 private: | 40 private: |
| 39 void setNeedsAnimate() override; | 41 void setNeedsAnimate() override; |
| 40 void setDeferCommits(bool) override; | 42 void setDeferCommits(bool) override; |
| 43 void registerSelection(const WebSelection&) override; |
| 44 void clearSelection() override; |
| 41 | 45 |
| 42 bool m_needsAnimate; | 46 bool m_needsAnimate; |
| 43 bool m_deferCommits; | 47 bool m_deferCommits; |
| 48 bool m_hasSelection; |
| 44 WebViewImpl* m_webViewImpl; | 49 WebViewImpl* m_webViewImpl; |
| 45 double m_lastFrameTimeMonotonic; | 50 double m_lastFrameTimeMonotonic; |
| 46 }; | 51 }; |
| 47 | 52 |
| 48 } // namespace blink | 53 } // namespace blink |
| 49 | 54 |
| 50 #endif | 55 #endif |
| OLD | NEW |