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

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

Issue 10928199: Add ExtendSelectionAndDelete() method to ui::TextInputClient. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reflected the review Created 8 years, 3 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 <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 1176
1177 void RenderWidgetHostImpl::ImeConfirmComposition() { 1177 void RenderWidgetHostImpl::ImeConfirmComposition() {
1178 ImeConfirmComposition(string16()); 1178 ImeConfirmComposition(string16());
1179 } 1179 }
1180 1180
1181 void RenderWidgetHostImpl::ImeCancelComposition() { 1181 void RenderWidgetHostImpl::ImeCancelComposition() {
1182 Send(new ViewMsg_ImeSetComposition(GetRoutingID(), string16(), 1182 Send(new ViewMsg_ImeSetComposition(GetRoutingID(), string16(),
1183 std::vector<WebKit::WebCompositionUnderline>(), 0, 0)); 1183 std::vector<WebKit::WebCompositionUnderline>(), 0, 0));
1184 } 1184 }
1185 1185
1186 void RenderWidgetHostImpl::ExtendSelectionAndDelete(int before, int after) {
1187 DCHECK(before >= 0);
1188 DCHECK(after >= 0);
Seigo Nonaka 2012/09/14 04:49:19 DCHECK_LE?
horo 2012/09/14 05:01:20 Done.
1189 Send(new ViewMsg_ExtendSelectionAndDelete(GetRoutingID(), before, after));
1190 }
1191
1186 gfx::Rect RenderWidgetHostImpl::GetRootWindowResizerRect() const { 1192 gfx::Rect RenderWidgetHostImpl::GetRootWindowResizerRect() const {
1187 return gfx::Rect(); 1193 return gfx::Rect();
1188 } 1194 }
1189 1195
1190 void RenderWidgetHostImpl::RequestToLockMouse(bool user_gesture, 1196 void RenderWidgetHostImpl::RequestToLockMouse(bool user_gesture,
1191 bool last_unlocked_by_target) { 1197 bool last_unlocked_by_target) {
1192 // Directly reject to lock the mouse. Subclass can override this method to 1198 // Directly reject to lock the mouse. Subclass can override this method to
1193 // decide whether to allow mouse lock or not. 1199 // decide whether to allow mouse lock or not.
1194 GotResponseToLockMouseRequest(false); 1200 GotResponseToLockMouseRequest(false);
1195 } 1201 }
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 // indicate that no callback is in progress (i.e. without this line 2051 // indicate that no callback is in progress (i.e. without this line
2046 // DelayedAutoResized will not get called again). 2052 // DelayedAutoResized will not get called again).
2047 new_auto_size_.SetSize(0, 0); 2053 new_auto_size_.SetSize(0, 0);
2048 if (!should_auto_resize_) 2054 if (!should_auto_resize_)
2049 return; 2055 return;
2050 2056
2051 OnRenderAutoResized(new_size); 2057 OnRenderAutoResized(new_size);
2052 } 2058 }
2053 2059
2054 } // namespace content 2060 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698