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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 12088095: Adding didCancelCompositionOnSelectionChange callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 } 2082 }
2083 2083
2084 bool RenderViewImpl::isSelectTrailingWhitespaceEnabled() { 2084 bool RenderViewImpl::isSelectTrailingWhitespaceEnabled() {
2085 #if defined(OS_WIN) 2085 #if defined(OS_WIN)
2086 return true; 2086 return true;
2087 #else 2087 #else
2088 return false; 2088 return false;
2089 #endif 2089 #endif
2090 } 2090 }
2091 2091
2092 void RenderViewImpl::didCancelCompositionOnSelectionChange() {
2093 Send(new ViewHostMsg_ImeCancelComposition(routing_id()));
2094 }
2095
2092 void RenderViewImpl::didChangeSelection(bool is_empty_selection) { 2096 void RenderViewImpl::didChangeSelection(bool is_empty_selection) {
2093 if (!handling_input_event_ && !handling_select_range_) 2097 if (!handling_input_event_ && !handling_select_range_)
2094 return; 2098 return;
2095 handling_select_range_ = false; 2099 handling_select_range_ = false;
2096 2100
2097 if (is_empty_selection) 2101 if (is_empty_selection)
2098 selection_text_.clear(); 2102 selection_text_.clear();
2099 2103
2100 SyncSelectionIfRequired(); 2104 SyncSelectionIfRequired();
2101 } 2105 }
(...skipping 4488 matching lines...) Expand 10 before | Expand all | Expand 10 after
6590 } 6594 }
6591 #endif 6595 #endif
6592 6596
6593 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6597 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6594 TransportDIB::Handle dib_handle) { 6598 TransportDIB::Handle dib_handle) {
6595 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6599 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6596 RenderProcess::current()->ReleaseTransportDIB(dib); 6600 RenderProcess::current()->ReleaseTransportDIB(dib);
6597 } 6601 }
6598 6602
6599 } // namespace content 6603 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698