Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: content/browser/renderer_host/input/touch_event_queue.cc

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/touch_event_queue.h" 5 #include "content/browser/renderer_host/input/touch_event_queue.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 void TouchEventQueue::SetIsMobileOptimizedSite(bool mobile_optimized_site) { 688 void TouchEventQueue::SetIsMobileOptimizedSite(bool mobile_optimized_site) {
689 if (timeout_handler_) 689 if (timeout_handler_)
690 timeout_handler_->SetUseMobileTimeout(mobile_optimized_site); 690 timeout_handler_->SetUseMobileTimeout(mobile_optimized_site);
691 } 691 }
692 692
693 bool TouchEventQueue::IsAckTimeoutEnabled() const { 693 bool TouchEventQueue::IsAckTimeoutEnabled() const {
694 return timeout_handler_ && timeout_handler_->IsEnabled(); 694 return timeout_handler_ && timeout_handler_->IsEnabled();
695 } 695 }
696 696
697 bool TouchEventQueue::HasPendingAsyncTouchMoveForTesting() const { 697 bool TouchEventQueue::HasPendingAsyncTouchMoveForTesting() const {
698 return pending_async_touchmove_; 698 return !!pending_async_touchmove_;
699 } 699 }
700 700
701 bool TouchEventQueue::IsTimeoutRunningForTesting() const { 701 bool TouchEventQueue::IsTimeoutRunningForTesting() const {
702 return timeout_handler_ && timeout_handler_->IsTimeoutTimerRunning(); 702 return timeout_handler_ && timeout_handler_->IsTimeoutTimerRunning();
703 } 703 }
704 704
705 const TouchEventWithLatencyInfo& 705 const TouchEventWithLatencyInfo&
706 TouchEventQueue::GetLatestEventForTesting() const { 706 TouchEventQueue::GetLatestEventForTesting() const {
707 return touch_queue_.back()->coalesced_event(); 707 return touch_queue_.back()->coalesced_event();
708 } 708 }
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 if (ack_result == INPUT_EVENT_ACK_STATE_CONSUMED) 878 if (ack_result == INPUT_EVENT_ACK_STATE_CONSUMED)
879 send_touch_events_async_ = false; 879 send_touch_events_async_ = false;
880 has_handler_for_current_sequence_ |= 880 has_handler_for_current_sequence_ |=
881 ack_result != INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; 881 ack_result != INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS;
882 } else if (WebTouchEventTraits::IsTouchSequenceEnd(event)) { 882 } else if (WebTouchEventTraits::IsTouchSequenceEnd(event)) {
883 has_handler_for_current_sequence_ = false; 883 has_handler_for_current_sequence_ = false;
884 } 884 }
885 } 885 }
886 886
887 } // namespace content 887 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698