| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" | 49 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" |
| 50 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 50 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 51 #include "content/common/content_constants_internal.h" | 51 #include "content/common/content_constants_internal.h" |
| 52 #include "content/common/content_switches_internal.h" | 52 #include "content/common/content_switches_internal.h" |
| 53 #include "content/common/cursors/webcursor.h" | 53 #include "content/common/cursors/webcursor.h" |
| 54 #include "content/common/frame_messages.h" | 54 #include "content/common/frame_messages.h" |
| 55 #include "content/common/gpu/gpu_messages.h" | 55 #include "content/common/gpu/gpu_messages.h" |
| 56 #include "content/common/host_shared_bitmap_manager.h" | 56 #include "content/common/host_shared_bitmap_manager.h" |
| 57 #include "content/common/input_messages.h" | 57 #include "content/common/input_messages.h" |
| 58 #include "content/common/resize_params.h" | 58 #include "content/common/resize_params.h" |
| 59 #include "content/common/text_input_state.h" |
| 59 #include "content/common/view_messages.h" | 60 #include "content/common/view_messages.h" |
| 60 #include "content/public/browser/native_web_keyboard_event.h" | 61 #include "content/public/browser/native_web_keyboard_event.h" |
| 61 #include "content/public/browser/notification_service.h" | 62 #include "content/public/browser/notification_service.h" |
| 62 #include "content/public/browser/notification_types.h" | 63 #include "content/public/browser/notification_types.h" |
| 63 #include "content/public/browser/render_widget_host_iterator.h" | 64 #include "content/public/browser/render_widget_host_iterator.h" |
| 64 #include "content/public/common/content_constants.h" | 65 #include "content/public/common/content_constants.h" |
| 65 #include "content/public/common/content_switches.h" | 66 #include "content/public/common/content_switches.h" |
| 66 #include "content/public/common/result_codes.h" | 67 #include "content/public/common/result_codes.h" |
| 67 #include "content/public/common/web_preferences.h" | 68 #include "content/public/common/web_preferences.h" |
| 68 #include "gpu/GLES2/gl2extchromium.h" | 69 #include "gpu/GLES2/gl2extchromium.h" |
| (...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1739 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); | 1740 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); |
| 1740 } | 1741 } |
| 1741 touch_emulator_->Enable(config_type); | 1742 touch_emulator_->Enable(config_type); |
| 1742 } else { | 1743 } else { |
| 1743 if (touch_emulator_) | 1744 if (touch_emulator_) |
| 1744 touch_emulator_->Disable(); | 1745 touch_emulator_->Disable(); |
| 1745 } | 1746 } |
| 1746 } | 1747 } |
| 1747 | 1748 |
| 1748 void RenderWidgetHostImpl::OnTextInputStateChanged( | 1749 void RenderWidgetHostImpl::OnTextInputStateChanged( |
| 1749 const ViewHostMsg_TextInputState_Params& params) { | 1750 const TextInputState& params) { |
| 1750 if (view_) | 1751 if (view_) |
| 1751 view_->TextInputStateChanged(params); | 1752 view_->TextInputStateChanged(params); |
| 1752 } | 1753 } |
| 1753 | 1754 |
| 1754 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( | 1755 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( |
| 1755 const gfx::Range& range, | 1756 const gfx::Range& range, |
| 1756 const std::vector<gfx::Rect>& character_bounds) { | 1757 const std::vector<gfx::Rect>& character_bounds) { |
| 1757 if (view_) | 1758 if (view_) |
| 1758 view_->ImeCompositionRangeChanged(range, character_bounds); | 1759 view_->ImeCompositionRangeChanged(range, character_bounds); |
| 1759 } | 1760 } |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2242 } | 2243 } |
| 2243 | 2244 |
| 2244 #if defined(OS_WIN) | 2245 #if defined(OS_WIN) |
| 2245 gfx::NativeViewAccessible | 2246 gfx::NativeViewAccessible |
| 2246 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2247 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2247 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2248 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2248 } | 2249 } |
| 2249 #endif | 2250 #endif |
| 2250 | 2251 |
| 2251 } // namespace content | 2252 } // namespace content |
| OLD | NEW |