| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ | 5 #ifndef CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ |
| 6 #define CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ | 6 #define CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <unordered_map> | 8 #include <unordered_map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 12 | 12 |
| 13 namespace base { | |
| 14 class SingleThreadTaskRunner; | |
| 15 } // namespace base | |
| 16 | |
| 17 namespace gfx { | 13 namespace gfx { |
| 18 class ScrollOffset; | 14 class ScrollOffset; |
| 19 } // namespace gfx | 15 } // namespace gfx |
| 20 | 16 |
| 21 namespace cc { | 17 namespace cc { |
| 22 class CompositorProtoState; | 18 class CompositorProtoState; |
| 23 | 19 |
| 24 class CC_EXPORT RemoteCompositorBridgeClient { | 20 class CC_EXPORT RemoteCompositorBridgeClient { |
| 25 public: | 21 public: |
| 26 using ScrollOffsetMap = std::unordered_map<int, gfx::ScrollOffset>; | 22 using ScrollOffsetMap = std::unordered_map<int, gfx::ScrollOffset>; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 38 // fail, for instance, if the layer present in the update was destroyed on the | 34 // fail, for instance, if the layer present in the update was destroyed on the |
| 39 // engine. | 35 // engine. |
| 40 virtual bool ApplyScrollAndScaleUpdateFromClient( | 36 virtual bool ApplyScrollAndScaleUpdateFromClient( |
| 41 const ScrollOffsetMap& client_scroll_map, | 37 const ScrollOffsetMap& client_scroll_map, |
| 42 float client_page_scale) = 0; | 38 float client_page_scale) = 0; |
| 43 }; | 39 }; |
| 44 | 40 |
| 45 } // namespace cc | 41 } // namespace cc |
| 46 | 42 |
| 47 #endif // CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ | 43 #endif // CC_BLIMP_REMOTE_COMPOSITOR_BRIDGE_CLIENT_H_ |
| OLD | NEW |