Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1914603002: Replace ViewHostMsg_TextInputState_Params with content::TextInputState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f)); 1712 view_.get() ? content::GetScaleFactorForView(view_.get()) : 1.0f));
1712 } 1713 }
1713 touch_emulator_->Enable(config_type); 1714 touch_emulator_->Enable(config_type);
1714 } else { 1715 } else {
1715 if (touch_emulator_) 1716 if (touch_emulator_)
1716 touch_emulator_->Disable(); 1717 touch_emulator_->Disable();
1717 } 1718 }
1718 } 1719 }
1719 1720
1720 void RenderWidgetHostImpl::OnTextInputStateChanged( 1721 void RenderWidgetHostImpl::OnTextInputStateChanged(
1721 const ViewHostMsg_TextInputState_Params& params) { 1722 const TextInputState& params) {
1722 if (view_) 1723 if (view_)
1723 view_->TextInputStateChanged(params); 1724 view_->TextInputStateChanged(params);
1724 } 1725 }
1725 1726
1726 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( 1727 void RenderWidgetHostImpl::OnImeCompositionRangeChanged(
1727 const gfx::Range& range, 1728 const gfx::Range& range,
1728 const std::vector<gfx::Rect>& character_bounds) { 1729 const std::vector<gfx::Rect>& character_bounds) {
1729 if (view_) 1730 if (view_)
1730 view_->ImeCompositionRangeChanged(range, character_bounds); 1731 view_->ImeCompositionRangeChanged(range, character_bounds);
1731 } 1732 }
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
2155 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; 2156 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL;
2156 } 2157 }
2157 2158
2158 BrowserAccessibilityManager* 2159 BrowserAccessibilityManager*
2159 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { 2160 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() {
2160 return delegate_ ? 2161 return delegate_ ?
2161 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; 2162 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL;
2162 } 2163 }
2163 2164
2164 } // namespace content 2165 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698