| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/renderer_host/input/mock_input_router_client.h" | 5 #include "content/browser/renderer_host/input/mock_input_router_client.h" |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/input/input_router.h" | 7 #include "content/browser/renderer_host/input/input_router.h" |
| 8 #include "content/common/input/input_event.h" | 8 #include "content/common/input/input_event.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 filter_input_event_called_ = false; | 55 filter_input_event_called_ = false; |
| 56 return filter_input_event_called; | 56 return filter_input_event_called; |
| 57 } | 57 } |
| 58 | 58 |
| 59 size_t MockInputRouterClient::GetAndResetDidFlushCount() { | 59 size_t MockInputRouterClient::GetAndResetDidFlushCount() { |
| 60 size_t did_flush_called_count = did_flush_called_count_; | 60 size_t did_flush_called_count = did_flush_called_count_; |
| 61 did_flush_called_count_ = 0; | 61 did_flush_called_count_ = 0; |
| 62 return did_flush_called_count; | 62 return did_flush_called_count; |
| 63 } | 63 } |
| 64 | 64 |
| 65 OverscrollController* MockInputRouterClient::GetOverscrollController() const { | |
| 66 return NULL; | |
| 67 } | |
| 68 | |
| 69 void MockInputRouterClient::DidFlush() { | 65 void MockInputRouterClient::DidFlush() { |
| 70 ++did_flush_called_count_; | 66 ++did_flush_called_count_; |
| 71 } | 67 } |
| 72 | 68 |
| 73 void MockInputRouterClient::SetNeedsFlush() { | 69 void MockInputRouterClient::SetNeedsFlush() { |
| 74 set_needs_flush_called_ = true; | 70 set_needs_flush_called_ = true; |
| 75 } | 71 } |
| 76 | 72 |
| 77 } // namespace content | 73 } // namespace content |
| OLD | NEW |