| 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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1746 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); | 1747 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); |
| 1747 } | 1748 } |
| 1748 touch_emulator_->Enable(config_type); | 1749 touch_emulator_->Enable(config_type); |
| 1749 } else { | 1750 } else { |
| 1750 if (touch_emulator_) | 1751 if (touch_emulator_) |
| 1751 touch_emulator_->Disable(); | 1752 touch_emulator_->Disable(); |
| 1752 } | 1753 } |
| 1753 } | 1754 } |
| 1754 | 1755 |
| 1755 void RenderWidgetHostImpl::OnTextInputStateChanged( | 1756 void RenderWidgetHostImpl::OnTextInputStateChanged( |
| 1756 const ViewHostMsg_TextInputState_Params& params) { | 1757 const TextInputState& params) { |
| 1757 if (view_) | 1758 if (view_) |
| 1758 view_->TextInputStateChanged(params); | 1759 view_->TextInputStateChanged(params); |
| 1759 } | 1760 } |
| 1760 | 1761 |
| 1761 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( | 1762 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( |
| 1762 const gfx::Range& range, | 1763 const gfx::Range& range, |
| 1763 const std::vector<gfx::Rect>& character_bounds) { | 1764 const std::vector<gfx::Rect>& character_bounds) { |
| 1764 if (view_) | 1765 if (view_) |
| 1765 view_->ImeCompositionRangeChanged(range, character_bounds); | 1766 view_->ImeCompositionRangeChanged(range, character_bounds); |
| 1766 } | 1767 } |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2253 } | 2254 } |
| 2254 | 2255 |
| 2255 #if defined(OS_WIN) | 2256 #if defined(OS_WIN) |
| 2256 gfx::NativeViewAccessible | 2257 gfx::NativeViewAccessible |
| 2257 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2258 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2258 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2259 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2259 } | 2260 } |
| 2260 #endif | 2261 #endif |
| 2261 | 2262 |
| 2262 } // namespace content | 2263 } // namespace content |
| OLD | NEW |