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

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

Issue 1249013005: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits. Created 5 years, 5 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 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, 454 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK,
455 OnUpdateScreenRectsAck) 455 OnUpdateScreenRectsAck)
456 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) 456 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove)
457 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) 457 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText)
458 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, 458 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame,
459 OnSwapCompositorFrame(msg)) 459 OnSwapCompositorFrame(msg))
460 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) 460 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect)
461 IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus) 461 IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus)
462 IPC_MESSAGE_HANDLER(ViewHostMsg_Blur, OnBlur) 462 IPC_MESSAGE_HANDLER(ViewHostMsg_Blur, OnBlur)
463 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) 463 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor)
464 IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputTypeChanged, 464 IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged,
465 OnTextInputTypeChanged) 465 OnTextInputStateChanged)
466 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnLockMouse) 466 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnLockMouse)
467 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnUnlockMouse) 467 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnUnlockMouse)
468 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDisambiguationPopup, 468 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDisambiguationPopup,
469 OnShowDisambiguationPopup) 469 OnShowDisambiguationPopup)
470 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnSelectionChanged) 470 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnSelectionChanged)
471 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, 471 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged,
472 OnSelectionBoundsChanged) 472 OnSelectionBoundsChanged)
473 #if defined(OS_WIN) 473 #if defined(OS_WIN)
474 IPC_MESSAGE_HANDLER(ViewHostMsg_WindowlessPluginDummyWindowCreated, 474 IPC_MESSAGE_HANDLER(ViewHostMsg_WindowlessPluginDummyWindowCreated,
475 OnWindowlessPluginDummyWindowCreated) 475 OnWindowlessPluginDummyWindowCreated)
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 touch_emulator_.reset(new TouchEmulator( 1597 touch_emulator_.reset(new TouchEmulator(
1598 this, view_ ? content::GetScaleFactorForView(view_) : 1.0f)); 1598 this, view_ ? content::GetScaleFactorForView(view_) : 1.0f));
1599 } 1599 }
1600 touch_emulator_->Enable(config_type); 1600 touch_emulator_->Enable(config_type);
1601 } else { 1601 } else {
1602 if (touch_emulator_) 1602 if (touch_emulator_)
1603 touch_emulator_->Disable(); 1603 touch_emulator_->Disable();
1604 } 1604 }
1605 } 1605 }
1606 1606
1607 void RenderWidgetHostImpl::OnTextInputTypeChanged( 1607 void RenderWidgetHostImpl::OnTextInputStateChanged(
1608 ui::TextInputType type, 1608 const ViewHostMsg_TextInputState_Params& params) {
1609 ui::TextInputMode input_mode,
1610 bool can_compose_inline,
1611 int flags) {
1612 if (view_) 1609 if (view_)
1613 view_->TextInputTypeChanged(type, input_mode, can_compose_inline, flags); 1610 view_->TextInputStateChanged(params);
1614 } 1611 }
1615 1612
1616 void RenderWidgetHostImpl::OnImeCompositionRangeChanged( 1613 void RenderWidgetHostImpl::OnImeCompositionRangeChanged(
1617 const gfx::Range& range, 1614 const gfx::Range& range,
1618 const std::vector<gfx::Rect>& character_bounds) { 1615 const std::vector<gfx::Rect>& character_bounds) {
1619 if (view_) 1616 if (view_)
1620 view_->ImeCompositionRangeChanged(range, character_bounds); 1617 view_->ImeCompositionRangeChanged(range, character_bounds);
1621 } 1618 }
1622 1619
1623 void RenderWidgetHostImpl::OnImeCancelComposition() { 1620 void RenderWidgetHostImpl::OnImeCancelComposition() {
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 } 2081 }
2085 2082
2086 #if defined(OS_WIN) 2083 #if defined(OS_WIN)
2087 gfx::NativeViewAccessible 2084 gfx::NativeViewAccessible
2088 RenderWidgetHostImpl::GetParentNativeViewAccessible() { 2085 RenderWidgetHostImpl::GetParentNativeViewAccessible() {
2089 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; 2086 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL;
2090 } 2087 }
2091 #endif 2088 #endif
2092 2089
2093 } // namespace content 2090 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698