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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 } | 406 } |
407 | 407 |
408 void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) override { | 408 void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) override { |
409 unresponsive_timer_fired_ = true; | 409 unresponsive_timer_fired_ = true; |
410 } | 410 } |
411 | 411 |
412 void Cut() override {} | 412 void Cut() override {} |
413 void Copy() override {} | 413 void Copy() override {} |
414 void Paste() override {} | 414 void Paste() override {} |
415 void SelectAll() override {} | 415 void SelectAll() override {} |
| 416 bool HasMouseLock(RenderWidgetHostImpl*) override { return false; } |
416 | 417 |
417 private: | 418 private: |
418 bool prehandle_keyboard_event_; | 419 bool prehandle_keyboard_event_; |
419 bool prehandle_keyboard_event_is_shortcut_; | 420 bool prehandle_keyboard_event_is_shortcut_; |
420 bool prehandle_keyboard_event_called_; | 421 bool prehandle_keyboard_event_called_; |
421 WebInputEvent::Type prehandle_keyboard_event_type_; | 422 WebInputEvent::Type prehandle_keyboard_event_type_; |
422 | 423 |
423 bool unhandled_keyboard_event_called_; | 424 bool unhandled_keyboard_event_called_; |
424 WebInputEvent::Type unhandled_keyboard_event_type_; | 425 WebInputEvent::Type unhandled_keyboard_event_type_; |
425 | 426 |
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 ui::LatencyInfo()); | 1675 ui::LatencyInfo()); |
1675 | 1676 |
1676 | 1677 |
1677 // Tests RWHI::ForwardWheelEventWithLatencyInfo(). | 1678 // Tests RWHI::ForwardWheelEventWithLatencyInfo(). |
1678 SimulateWheelEventWithLatencyInfo(-5, 0, 0, true, ui::LatencyInfo()); | 1679 SimulateWheelEventWithLatencyInfo(-5, 0, 0, true, ui::LatencyInfo()); |
1679 | 1680 |
1680 ASSERT_FALSE(host_->input_router()->HasPendingEvents()); | 1681 ASSERT_FALSE(host_->input_router()->HasPendingEvents()); |
1681 } | 1682 } |
1682 | 1683 |
1683 } // namespace content | 1684 } // namespace content |
OLD | NEW |