OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <tuple> | 9 #include <tuple> |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 void SendTouchEvent(const TouchEventWithLatencyInfo& touch_event) override { | 128 void SendTouchEvent(const TouchEventWithLatencyInfo& touch_event) override { |
129 send_touch_event_not_cancelled_ = | 129 send_touch_event_not_cancelled_ = |
130 client_->FilterInputEvent(touch_event.event, touch_event.latency) == | 130 client_->FilterInputEvent(touch_event.event, touch_event.latency) == |
131 INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 131 INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
132 } | 132 } |
133 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override { | 133 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override { |
134 NOTREACHED(); | 134 NOTREACHED(); |
135 return NULL; | 135 return NULL; |
136 } | 136 } |
137 void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override {} | 137 void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override {} |
138 void RequestNotificationWhenFlushed() override {} | |
139 bool HasPendingEvents() const override { return false; } | 138 bool HasPendingEvents() const override { return false; } |
140 void SetDeviceScaleFactor(float device_scale_factor) override {} | 139 void SetDeviceScaleFactor(float device_scale_factor) override {} |
141 void SetFrameTreeNodeId(int frameTreeNodeId) override {} | 140 void SetFrameTreeNodeId(int frameTreeNodeId) override {} |
142 | 141 |
143 // IPC::Listener | 142 // IPC::Listener |
144 bool OnMessageReceived(const IPC::Message& message) override { | 143 bool OnMessageReceived(const IPC::Message& message) override { |
145 message_received_ = true; | 144 message_received_ = true; |
146 return false; | 145 return false; |
147 } | 146 } |
148 | 147 |
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2156 EXPECT_EQ(0u, host_->processed_frame_messages_count()); | 2155 EXPECT_EQ(0u, host_->processed_frame_messages_count()); |
2157 | 2156 |
2158 frame = MakeCompositorFrame(1.f, frame_size); | 2157 frame = MakeCompositorFrame(1.f, frame_size); |
2159 frame.metadata.frame_token = frame_token3; | 2158 frame.metadata.frame_token = frame_token3; |
2160 host_->SubmitCompositorFrame(local_surface_id, std::move(frame)); | 2159 host_->SubmitCompositorFrame(local_surface_id, std::move(frame)); |
2161 EXPECT_EQ(0u, host_->queued_messages_.size()); | 2160 EXPECT_EQ(0u, host_->queued_messages_.size()); |
2162 EXPECT_EQ(1u, host_->processed_frame_messages_count()); | 2161 EXPECT_EQ(1u, host_->processed_frame_messages_count()); |
2163 } | 2162 } |
2164 | 2163 |
2165 } // namespace content | 2164 } // namespace content |
OLD | NEW |