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 "content/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 407 |
408 base::TimeDelta | 408 base::TimeDelta |
409 RenderWidgetHostImpl::GetSyntheticGestureMessageInterval() const { | 409 RenderWidgetHostImpl::GetSyntheticGestureMessageInterval() const { |
410 return synthetic_gesture_controller_.GetSyntheticGestureMessageInterval(); | 410 return synthetic_gesture_controller_.GetSyntheticGestureMessageInterval(); |
411 } | 411 } |
412 | 412 |
413 void RenderWidgetHostImpl::SetOverscrollControllerEnabled(bool enabled) { | 413 void RenderWidgetHostImpl::SetOverscrollControllerEnabled(bool enabled) { |
414 if (!enabled) | 414 if (!enabled) |
415 overscroll_controller_.reset(); | 415 overscroll_controller_.reset(); |
416 else if (!overscroll_controller_) | 416 else if (!overscroll_controller_) |
417 overscroll_controller_.reset(new OverscrollController(this)); | 417 overscroll_controller_.reset(new OverscrollController()); |
418 } | 418 } |
419 | 419 |
420 void RenderWidgetHostImpl::SuppressNextCharEvents() { | 420 void RenderWidgetHostImpl::SuppressNextCharEvents() { |
421 suppress_next_char_events_ = true; | 421 suppress_next_char_events_ = true; |
422 } | 422 } |
423 | 423 |
424 void RenderWidgetHostImpl::FlushInput() { | 424 void RenderWidgetHostImpl::FlushInput() { |
425 input_router_->Flush(); | 425 input_router_->Flush(); |
426 } | 426 } |
427 | 427 |
(...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2485 continue; | 2485 continue; |
2486 } | 2486 } |
2487 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); | 2487 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); |
2488 if (rwhi_set.insert(rwhi).second) | 2488 if (rwhi_set.insert(rwhi).second) |
2489 rwhi->FrameSwapped(latency_info); | 2489 rwhi->FrameSwapped(latency_info); |
2490 } | 2490 } |
2491 } | 2491 } |
2492 } | 2492 } |
2493 | 2493 |
2494 } // namespace content | 2494 } // namespace content |
OLD | NEW |