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_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 Loading... | |
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()) { | |
1238 NOTREACHED(); | |
Seigo Nonaka
2012/09/14 04:21:03
please add return; just in case.
horo
2012/09/14 04:34:50
Done.
| |
1239 } | |
1240 if (!render_widget_host_) | |
1241 return; | |
1242 render_widget_host_->ExtendSelectionAndDelete(before, after); | |
1243 } | |
1244 | |
1236 /////////////////////////////////////////////////////////////////////////////// | 1245 /////////////////////////////////////////////////////////////////////////////// |
1237 // RenderWidgetHostViewWin, private: | 1246 // RenderWidgetHostViewWin, private: |
1238 | 1247 |
1239 LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) { | 1248 LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) { |
1240 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnCreate"); | 1249 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnCreate"); |
1241 // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale | 1250 // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale |
1242 // of a browser process. | 1251 // of a browser process. |
1243 OnInputLangChange(0, 0); | 1252 OnInputLangChange(0, 0); |
1244 // Marks that window as supporting mouse-wheel messages rerouting so it is | 1253 // Marks that window as supporting mouse-wheel messages rerouting so it is |
1245 // scrolled when under the mouse pointer even if inactive. | 1254 // scrolled when under the mouse pointer even if inactive. |
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3080 // receive a focus change in the context of a pointer down message, it means | 3089 // 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 | 3090 // that the pointer down message occurred on the edit field and we should |
3082 // display the on screen keyboard | 3091 // display the on screen keyboard |
3083 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 3092 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
3084 DisplayOnScreenKeyboardIfNeeded(); | 3093 DisplayOnScreenKeyboardIfNeeded(); |
3085 received_focus_change_after_pointer_down_ = false; | 3094 received_focus_change_after_pointer_down_ = false; |
3086 pointer_down_context_ = false; | 3095 pointer_down_context_ = false; |
3087 } | 3096 } |
3088 | 3097 |
3089 } // namespace content | 3098 } // namespace content |
OLD | NEW |