| 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_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/input/synthetic_gesture_target_base.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 } | 530 } |
| 531 | 531 |
| 532 scoped_ptr<SyntheticGestureTarget> | 532 scoped_ptr<SyntheticGestureTarget> |
| 533 RenderWidgetHostViewBase::CreateSyntheticGestureTarget() { | 533 RenderWidgetHostViewBase::CreateSyntheticGestureTarget() { |
| 534 RenderWidgetHostImpl* host = | 534 RenderWidgetHostImpl* host = |
| 535 RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 535 RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
| 536 return scoped_ptr<SyntheticGestureTarget>( | 536 return scoped_ptr<SyntheticGestureTarget>( |
| 537 new SyntheticGestureTargetBase(host)); | 537 new SyntheticGestureTargetBase(host)); |
| 538 } | 538 } |
| 539 | 539 |
| 540 void RenderWidgetHostViewBase::FocusedNodeChanged(bool is_editable_node) { |
| 541 } |
| 542 |
| 540 // Platform implementation should override this method to allow frame | 543 // Platform implementation should override this method to allow frame |
| 541 // subscription. Frame subscriber is set to RenderProcessHost, which is | 544 // subscription. Frame subscriber is set to RenderProcessHost, which is |
| 542 // platform independent. It should be set to the specific presenter on each | 545 // platform independent. It should be set to the specific presenter on each |
| 543 // platform. | 546 // platform. |
| 544 bool RenderWidgetHostViewBase::CanSubscribeFrame() const { | 547 bool RenderWidgetHostViewBase::CanSubscribeFrame() const { |
| 545 NOTIMPLEMENTED(); | 548 NOTIMPLEMENTED(); |
| 546 return false; | 549 return false; |
| 547 } | 550 } |
| 548 | 551 |
| 549 // Base implementation for this method sets the subscriber to RenderProcessHost, | 552 // Base implementation for this method sets the subscriber to RenderProcessHost, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 void RenderWidgetHostViewBase::FlushInput() { | 592 void RenderWidgetHostViewBase::FlushInput() { |
| 590 RenderWidgetHostImpl* impl = NULL; | 593 RenderWidgetHostImpl* impl = NULL; |
| 591 if (GetRenderWidgetHost()) | 594 if (GetRenderWidgetHost()) |
| 592 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 595 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
| 593 if (!impl) | 596 if (!impl) |
| 594 return; | 597 return; |
| 595 impl->FlushInput(); | 598 impl->FlushInput(); |
| 596 } | 599 } |
| 597 | 600 |
| 598 } // namespace content | 601 } // namespace content |
| OLD | NEW |