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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.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_view_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <peninputpanel_i.c> 9 #include <peninputpanel_i.c>
10 #include <stack> 10 #include <stack>
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 base::i18n::TextDirection direction) { 1226 base::i18n::TextDirection direction) {
1227 if (!base::win::IsTsfAwareRequired()) { 1227 if (!base::win::IsTsfAwareRequired()) {
1228 NOTREACHED(); 1228 NOTREACHED();
1229 return false; 1229 return false;
1230 } 1230 }
1231 // TODO(nona): Implement this function. 1231 // TODO(nona): Implement this function.
1232 NOTIMPLEMENTED(); 1232 NOTIMPLEMENTED();
1233 return false; 1233 return false;
1234 } 1234 }
1235 1235
1236 void RenderWidgetHostViewWin::ExtendSelectionAndDelete(int before, int after) {
1237 if (!base::win::IsTsfAwareRequired())
Seigo Nonaka 2012/09/14 04:49:19 if (!base::win::IsTsfAwareRequired()) { NOTREACH
horo 2012/09/14 05:01:20 Done.
1238 return;
1239 if (!render_widget_host_)
1240 return;
1241 render_widget_host_->ExtendSelectionAndDelete(before, after);
1242 }
1243
1236 /////////////////////////////////////////////////////////////////////////////// 1244 ///////////////////////////////////////////////////////////////////////////////
1237 // RenderWidgetHostViewWin, private: 1245 // RenderWidgetHostViewWin, private:
1238 1246
1239 LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) { 1247 LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) {
1240 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnCreate"); 1248 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnCreate");
1241 // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale 1249 // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale
1242 // of a browser process. 1250 // of a browser process.
1243 OnInputLangChange(0, 0); 1251 OnInputLangChange(0, 0);
1244 // Marks that window as supporting mouse-wheel messages rerouting so it is 1252 // Marks that window as supporting mouse-wheel messages rerouting so it is
1245 // scrolled when under the mouse pointer even if inactive. 1253 // scrolled when under the mouse pointer even if inactive.
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 // receive a focus change in the context of a pointer down message, it means 3088 // receive a focus change in the context of a pointer down message, it means
3081 // that the pointer down message occurred on the edit field and we should 3089 // that the pointer down message occurred on the edit field and we should
3082 // display the on screen keyboard 3090 // display the on screen keyboard
3083 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) 3091 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_)
3084 DisplayOnScreenKeyboardIfNeeded(); 3092 DisplayOnScreenKeyboardIfNeeded();
3085 received_focus_change_after_pointer_down_ = false; 3093 received_focus_change_after_pointer_down_ = false;
3086 pointer_down_context_ = false; 3094 pointer_down_context_ = false;
3087 } 3095 }
3088 3096
3089 } // namespace content 3097 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698