| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #include "web_to_ccinput_handler_adapter.h" | 5 #include "web_to_ccinput_handler_adapter.h" |
| 6 | 6 |
| 7 #include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandlerClie
nt.h" | 7 #include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandlerClie
nt.h" |
| 8 | 8 |
| 9 #define COMPILE_ASSERT_MATCHING_ENUM(webkit_name, cc_name) \ | 9 #define COMPILE_ASSERT_MATCHING_ENUM(webkit_name, cc_name) \ |
| 10 COMPILE_ASSERT(int(WebKit::webkit_name) == int(cc::cc_name), mismatching_enu
ms) | 10 COMPILE_ASSERT(int(WebKit::webkit_name) == int(cc::cc_name), mismatching_enu
ms) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 m_clientAdapter.reset(new ClientAdapter(client)); | 103 m_clientAdapter.reset(new ClientAdapter(client)); |
| 104 m_handler->bindToClient(m_clientAdapter.get()); | 104 m_handler->bindToClient(m_clientAdapter.get()); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void WebToCCInputHandlerAdapter::animate(base::TimeTicks time) | 107 void WebToCCInputHandlerAdapter::animate(base::TimeTicks time) |
| 108 { | 108 { |
| 109 double monotonicTimeSeconds = (time - base::TimeTicks()).InSecondsF(); | 109 double monotonicTimeSeconds = (time - base::TimeTicks()).InSecondsF(); |
| 110 m_handler->animate(monotonicTimeSeconds); | 110 m_handler->animate(monotonicTimeSeconds); |
| 111 } | 111 } |
| 112 | 112 |
| 113 void WebToCCInputHandlerAdapter::mainThreadHasStoppedFlinging() |
| 114 { |
| 115 m_handler->mainThreadHasStoppedFlinging(); |
| 116 } |
| 117 |
| 113 } // namespace WebKit | 118 } // namespace WebKit |
| OLD | NEW |