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

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

Issue 10885004: Implement disambiguation popup (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing visibility Created 8 years, 2 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, 309 IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged,
310 OnMsgTextInputStateChanged) 310 OnMsgTextInputStateChanged)
311 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCompositionRangeChanged, 311 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCompositionRangeChanged,
312 OnMsgImeCompositionRangeChanged) 312 OnMsgImeCompositionRangeChanged)
313 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCancelComposition, 313 IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCancelComposition,
314 OnMsgImeCancelComposition) 314 OnMsgImeCancelComposition)
315 IPC_MESSAGE_HANDLER(ViewHostMsg_DidActivateAcceleratedCompositing, 315 IPC_MESSAGE_HANDLER(ViewHostMsg_DidActivateAcceleratedCompositing,
316 OnMsgDidActivateAcceleratedCompositing) 316 OnMsgDidActivateAcceleratedCompositing)
317 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnMsgLockMouse) 317 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnMsgLockMouse)
318 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnMsgUnlockMouse) 318 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnMsgUnlockMouse)
319 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDisambiguationPopup,
320 OnMsgShowDisambiguationPopup)
319 #if defined(OS_POSIX) || defined(USE_AURA) 321 #if defined(OS_POSIX) || defined(USE_AURA)
320 IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowRect, OnMsgGetWindowRect) 322 IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowRect, OnMsgGetWindowRect)
321 IPC_MESSAGE_HANDLER(ViewHostMsg_GetRootWindowRect, OnMsgGetRootWindowRect) 323 IPC_MESSAGE_HANDLER(ViewHostMsg_GetRootWindowRect, OnMsgGetRootWindowRect)
322 #endif 324 #endif
323 #if defined(OS_MACOSX) 325 #if defined(OS_MACOSX)
324 IPC_MESSAGE_HANDLER(ViewHostMsg_PluginFocusChanged, 326 IPC_MESSAGE_HANDLER(ViewHostMsg_PluginFocusChanged,
325 OnMsgPluginFocusChanged) 327 OnMsgPluginFocusChanged)
326 IPC_MESSAGE_HANDLER(ViewHostMsg_StartPluginIme, 328 IPC_MESSAGE_HANDLER(ViewHostMsg_StartPluginIme,
327 OnMsgStartPluginIme) 329 OnMsgStartPluginIme)
328 IPC_MESSAGE_HANDLER(ViewHostMsg_AllocateFakePluginWindowHandle, 330 IPC_MESSAGE_HANDLER(ViewHostMsg_AllocateFakePluginWindowHandle,
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 GotResponseToLockMouseRequest(true); 1820 GotResponseToLockMouseRequest(true);
1819 } else { 1821 } else {
1820 RequestToLockMouse(user_gesture, last_unlocked_by_target); 1822 RequestToLockMouse(user_gesture, last_unlocked_by_target);
1821 } 1823 }
1822 } 1824 }
1823 1825
1824 void RenderWidgetHostImpl::OnMsgUnlockMouse() { 1826 void RenderWidgetHostImpl::OnMsgUnlockMouse() {
1825 RejectMouseLockOrUnlockIfNecessary(); 1827 RejectMouseLockOrUnlockIfNecessary();
1826 } 1828 }
1827 1829
1830 void RenderWidgetHostImpl::OnMsgShowDisambiguationPopup(
1831 const gfx::Rect& rect,
1832 const gfx::Size& size,
1833 const TransportDIB::Id& id) {
1834 TransportDIB* dib = process_->GetTransportDIB(id);
1835
1836 // TODO(trchen): implement the platform-specific disambiguation popup
1837 NOTIMPLEMENTED();
1838
1839 Send(new ViewMsg_ReleaseDisambiguationPopupDIB(GetRoutingID(),
1840 dib->handle()));
1841 }
1842
1828 #if defined(OS_POSIX) || defined(USE_AURA) 1843 #if defined(OS_POSIX) || defined(USE_AURA)
1829 void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id, 1844 void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id,
1830 gfx::Rect* results) { 1845 gfx::Rect* results) {
1831 if (view_) 1846 if (view_)
1832 *results = view_->GetViewBounds(); 1847 *results = view_->GetViewBounds();
1833 } 1848 }
1834 1849
1835 void RenderWidgetHostImpl::OnMsgGetRootWindowRect(gfx::NativeViewId window_id, 1850 void RenderWidgetHostImpl::OnMsgGetRootWindowRect(gfx::NativeViewId window_id,
1836 gfx::Rect* results) { 1851 gfx::Rect* results) {
1837 if (view_) 1852 if (view_)
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
2144 return; 2159 return;
2145 2160
2146 OnRenderAutoResized(new_size); 2161 OnRenderAutoResized(new_size);
2147 } 2162 }
2148 2163
2149 void RenderWidgetHostImpl::DetachDelegate() { 2164 void RenderWidgetHostImpl::DetachDelegate() {
2150 delegate_ = NULL; 2165 delegate_ = NULL;
2151 } 2166 }
2152 2167
2153 } // namespace content 2168 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698