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

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

Issue 56643003: Start using FocusedNodedChanged to restartInput. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jamesr's nits Created 7 years, 1 month 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 | Annotate | Revision Log
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_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #include "content/browser/gpu/gpu_data_manager_impl.h" 9 #include "content/browser/gpu/gpu_data_manager_impl.h"
10 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h" 10 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 } 544 }
545 545
546 scoped_ptr<SyntheticGestureTarget> 546 scoped_ptr<SyntheticGestureTarget>
547 RenderWidgetHostViewBase::CreateSyntheticGestureTarget() { 547 RenderWidgetHostViewBase::CreateSyntheticGestureTarget() {
548 RenderWidgetHostImpl* host = 548 RenderWidgetHostImpl* host =
549 RenderWidgetHostImpl::From(GetRenderWidgetHost()); 549 RenderWidgetHostImpl::From(GetRenderWidgetHost());
550 return scoped_ptr<SyntheticGestureTarget>( 550 return scoped_ptr<SyntheticGestureTarget>(
551 new SyntheticGestureTargetBase(host)); 551 new SyntheticGestureTargetBase(host));
552 } 552 }
553 553
554 void RenderWidgetHostViewBase::FocusedNodeChanged(bool is_editable_node) {
555 }
556
554 // Platform implementation should override this method to allow frame 557 // Platform implementation should override this method to allow frame
555 // subscription. Frame subscriber is set to RenderProcessHost, which is 558 // subscription. Frame subscriber is set to RenderProcessHost, which is
556 // platform independent. It should be set to the specific presenter on each 559 // platform independent. It should be set to the specific presenter on each
557 // platform. 560 // platform.
558 bool RenderWidgetHostViewBase::CanSubscribeFrame() const { 561 bool RenderWidgetHostViewBase::CanSubscribeFrame() const {
559 NOTIMPLEMENTED(); 562 NOTIMPLEMENTED();
560 return false; 563 return false;
561 } 564 }
562 565
563 // Base implementation for this method sets the subscriber to RenderProcessHost, 566 // Base implementation for this method sets the subscriber to RenderProcessHost,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 void RenderWidgetHostViewBase::FlushInput() { 606 void RenderWidgetHostViewBase::FlushInput() {
604 RenderWidgetHostImpl* impl = NULL; 607 RenderWidgetHostImpl* impl = NULL;
605 if (GetRenderWidgetHost()) 608 if (GetRenderWidgetHost())
606 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); 609 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost());
607 if (!impl) 610 if (!impl)
608 return; 611 return;
609 impl->FlushInput(); 612 impl->FlushInput();
610 } 613 }
611 614
612 } // namespace content 615 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698