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 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1719 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); | 1719 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); |
1720 } | 1720 } |
1721 touch_emulator_->Enable(config_type); | 1721 touch_emulator_->Enable(config_type); |
1722 } else { | 1722 } else { |
1723 if (touch_emulator_) | 1723 if (touch_emulator_) |
1724 touch_emulator_->Disable(); | 1724 touch_emulator_->Disable(); |
1725 } | 1725 } |
1726 } | 1726 } |
1727 | 1727 |
1728 void RenderWidgetHostImpl::OnTextInputStateChanged( | 1728 void RenderWidgetHostImpl::OnTextInputStateChanged( |
1729 const ViewHostMsg_TextInputState_Params& params) { | 1729 const TextInputState& params) { |
1730 if (view_) | 1730 if (view_) |
1731 view_->TextInputStateChanged(params); | 1731 view_->TextInputStateChanged(params); |
1732 } | 1732 } |
1733 | 1733 |
1734 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( | 1734 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( |
1735 const gfx::Range& range, | 1735 const gfx::Range& range, |
1736 const std::vector<gfx::Rect>& character_bounds) { | 1736 const std::vector<gfx::Rect>& character_bounds) { |
1737 if (view_) | 1737 if (view_) |
1738 view_->ImeCompositionRangeChanged(range, character_bounds); | 1738 view_->ImeCompositionRangeChanged(range, character_bounds); |
1739 } | 1739 } |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2163 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; | 2163 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; |
2164 } | 2164 } |
2165 | 2165 |
2166 BrowserAccessibilityManager* | 2166 BrowserAccessibilityManager* |
2167 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2167 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { |
2168 return delegate_ ? | 2168 return delegate_ ? |
2169 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; | 2169 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; |
2170 } | 2170 } |
2171 | 2171 |
2172 } // namespace content | 2172 } // namespace content |
OLD | NEW |