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