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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 30683003: Remove final RenderWidgetHostImpl dependency from OverscrollController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove explicit Created 7 years, 2 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 (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
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 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after
2481 continue; 2481 continue;
2482 } 2482 }
2483 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh); 2483 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(rwh);
2484 if (rwhi_set.insert(rwhi).second) 2484 if (rwhi_set.insert(rwhi).second)
2485 rwhi->FrameSwapped(latency_info); 2485 rwhi->FrameSwapped(latency_info);
2486 } 2486 }
2487 } 2487 }
2488 } 2488 }
2489 2489
2490 } // namespace content 2490 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698