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 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" | 50 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" |
51 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" | 51 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" |
52 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 52 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
53 #include "content/common/content_constants_internal.h" | 53 #include "content/common/content_constants_internal.h" |
54 #include "content/common/content_switches_internal.h" | 54 #include "content/common/content_switches_internal.h" |
55 #include "content/common/cursors/webcursor.h" | 55 #include "content/common/cursors/webcursor.h" |
56 #include "content/common/frame_messages.h" | 56 #include "content/common/frame_messages.h" |
57 #include "content/common/host_shared_bitmap_manager.h" | 57 #include "content/common/host_shared_bitmap_manager.h" |
58 #include "content/common/input_messages.h" | 58 #include "content/common/input_messages.h" |
59 #include "content/common/resize_params.h" | 59 #include "content/common/resize_params.h" |
| 60 #include "content/common/text_input_state.h" |
60 #include "content/common/view_messages.h" | 61 #include "content/common/view_messages.h" |
61 #include "content/public/browser/native_web_keyboard_event.h" | 62 #include "content/public/browser/native_web_keyboard_event.h" |
62 #include "content/public/browser/notification_service.h" | 63 #include "content/public/browser/notification_service.h" |
63 #include "content/public/browser/notification_types.h" | 64 #include "content/public/browser/notification_types.h" |
64 #include "content/public/browser/render_widget_host_iterator.h" | 65 #include "content/public/browser/render_widget_host_iterator.h" |
65 #include "content/public/common/content_constants.h" | 66 #include "content/public/common/content_constants.h" |
66 #include "content/public/common/content_switches.h" | 67 #include "content/public/common/content_switches.h" |
67 #include "content/public/common/result_codes.h" | 68 #include "content/public/common/result_codes.h" |
68 #include "content/public/common/web_preferences.h" | 69 #include "content/public/common/web_preferences.h" |
69 #include "gpu/GLES2/gl2extchromium.h" | 70 #include "gpu/GLES2/gl2extchromium.h" |
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); | 1723 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); |
1723 } | 1724 } |
1724 touch_emulator_->Enable(config_type); | 1725 touch_emulator_->Enable(config_type); |
1725 } else { | 1726 } else { |
1726 if (touch_emulator_) | 1727 if (touch_emulator_) |
1727 touch_emulator_->Disable(); | 1728 touch_emulator_->Disable(); |
1728 } | 1729 } |
1729 } | 1730 } |
1730 | 1731 |
1731 void RenderWidgetHostImpl::OnTextInputStateChanged( | 1732 void RenderWidgetHostImpl::OnTextInputStateChanged( |
1732 const ViewHostMsg_TextInputState_Params& params) { | 1733 const TextInputState& params) { |
1733 if (view_) | 1734 if (view_) |
1734 view_->TextInputStateChanged(params); | 1735 view_->TextInputStateChanged(params); |
1735 } | 1736 } |
1736 | 1737 |
1737 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( | 1738 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( |
1738 const gfx::Range& range, | 1739 const gfx::Range& range, |
1739 const std::vector<gfx::Rect>& character_bounds) { | 1740 const std::vector<gfx::Rect>& character_bounds) { |
1740 if (view_) | 1741 if (view_) |
1741 view_->ImeCompositionRangeChanged(range, character_bounds); | 1742 view_->ImeCompositionRangeChanged(range, character_bounds); |
1742 } | 1743 } |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2166 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; | 2167 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; |
2167 } | 2168 } |
2168 | 2169 |
2169 BrowserAccessibilityManager* | 2170 BrowserAccessibilityManager* |
2170 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2171 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { |
2171 return delegate_ ? | 2172 return delegate_ ? |
2172 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; | 2173 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; |
2173 } | 2174 } |
2174 | 2175 |
2175 } // namespace content | 2176 } // namespace content |
OLD | NEW |