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

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: change int to size_t 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(
1237 size_t before,
1238 size_t after) {
1239 if (!base::win::IsTsfAwareRequired()) {
1240 NOTREACHED();
1241 return;
1242 }
1243 if (!render_widget_host_)
1244 return;
1245 render_widget_host_->ExtendSelectionAndDelete(before, after);
1246 }
1247
1236 /////////////////////////////////////////////////////////////////////////////// 1248 ///////////////////////////////////////////////////////////////////////////////
1237 // RenderWidgetHostViewWin, private: 1249 // RenderWidgetHostViewWin, private:
1238 1250
1239 LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) { 1251 LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) {
1240 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnCreate"); 1252 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnCreate");
1241 // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale 1253 // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale
1242 // of a browser process. 1254 // of a browser process.
1243 OnInputLangChange(0, 0); 1255 OnInputLangChange(0, 0);
1244 // Marks that window as supporting mouse-wheel messages rerouting so it is 1256 // Marks that window as supporting mouse-wheel messages rerouting so it is
1245 // scrolled when under the mouse pointer even if inactive. 1257 // 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 3092 // 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 3093 // that the pointer down message occurred on the edit field and we should
3082 // display the on screen keyboard 3094 // display the on screen keyboard
3083 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) 3095 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_)
3084 DisplayOnScreenKeyboardIfNeeded(); 3096 DisplayOnScreenKeyboardIfNeeded();
3085 received_focus_change_after_pointer_down_ = false; 3097 received_focus_change_after_pointer_down_ = false;
3086 pointer_down_context_ = false; 3098 pointer_down_context_ = false;
3087 } 3099 }
3088 3100
3089 } // namespace content 3101 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | ui/base/ime/input_method_ibus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698