OLD | NEW |
---|---|
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 Loading... | |
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 Send(new ViewMsg_ExtendSelectionAndDelete(GetRoutingID(), | |
Seigo Nonaka
2012/09/14 04:21:03
nit: can be one line? or align arguments.
horo
2012/09/14 04:34:50
Done.
| |
1188 before, after)); | |
1189 } | |
1190 | |
1186 gfx::Rect RenderWidgetHostImpl::GetRootWindowResizerRect() const { | 1191 gfx::Rect RenderWidgetHostImpl::GetRootWindowResizerRect() const { |
1187 return gfx::Rect(); | 1192 return gfx::Rect(); |
1188 } | 1193 } |
1189 | 1194 |
1190 void RenderWidgetHostImpl::RequestToLockMouse(bool user_gesture, | 1195 void RenderWidgetHostImpl::RequestToLockMouse(bool user_gesture, |
1191 bool last_unlocked_by_target) { | 1196 bool last_unlocked_by_target) { |
1192 // Directly reject to lock the mouse. Subclass can override this method to | 1197 // Directly reject to lock the mouse. Subclass can override this method to |
1193 // decide whether to allow mouse lock or not. | 1198 // decide whether to allow mouse lock or not. |
1194 GotResponseToLockMouseRequest(false); | 1199 GotResponseToLockMouseRequest(false); |
1195 } | 1200 } |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2045 // indicate that no callback is in progress (i.e. without this line | 2050 // indicate that no callback is in progress (i.e. without this line |
2046 // DelayedAutoResized will not get called again). | 2051 // DelayedAutoResized will not get called again). |
2047 new_auto_size_.SetSize(0, 0); | 2052 new_auto_size_.SetSize(0, 0); |
2048 if (!should_auto_resize_) | 2053 if (!should_auto_resize_) |
2049 return; | 2054 return; |
2050 | 2055 |
2051 OnRenderAutoResized(new_size); | 2056 OnRenderAutoResized(new_size); |
2052 } | 2057 } |
2053 | 2058 |
2054 } // namespace content | 2059 } // namespace content |
OLD | NEW |