| 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 "ui/views/controls/textfield/native_textfield_win.h" | 5 #include "ui/views/controls/textfield/native_textfield_win.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/i18n/case_conversion.h" | 9 #include "base/i18n/case_conversion.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 text_object_model_.QueryFrom(ole_interface); | 1190 text_object_model_.QueryFrom(ole_interface); |
| 1191 } | 1191 } |
| 1192 return text_object_model_; | 1192 return text_object_model_; |
| 1193 } | 1193 } |
| 1194 | 1194 |
| 1195 void NativeTextfieldWin::BuildContextMenu() { | 1195 void NativeTextfieldWin::BuildContextMenu() { |
| 1196 if (context_menu_contents_.get()) | 1196 if (context_menu_contents_.get()) |
| 1197 return; | 1197 return; |
| 1198 context_menu_contents_.reset(new ui::SimpleMenuModel(this)); | 1198 context_menu_contents_.reset(new ui::SimpleMenuModel(this)); |
| 1199 context_menu_contents_->AddItemWithStringId(IDS_APP_UNDO, IDS_APP_UNDO); | 1199 context_menu_contents_->AddItemWithStringId(IDS_APP_UNDO, IDS_APP_UNDO); |
| 1200 context_menu_contents_->AddSeparator(); | 1200 context_menu_contents_->AddSeparator(ui::NORMAL_SEPARATOR); |
| 1201 context_menu_contents_->AddItemWithStringId(IDS_APP_CUT, IDS_APP_CUT); | 1201 context_menu_contents_->AddItemWithStringId(IDS_APP_CUT, IDS_APP_CUT); |
| 1202 context_menu_contents_->AddItemWithStringId(IDS_APP_COPY, IDS_APP_COPY); | 1202 context_menu_contents_->AddItemWithStringId(IDS_APP_COPY, IDS_APP_COPY); |
| 1203 context_menu_contents_->AddItemWithStringId(IDS_APP_PASTE, IDS_APP_PASTE); | 1203 context_menu_contents_->AddItemWithStringId(IDS_APP_PASTE, IDS_APP_PASTE); |
| 1204 context_menu_contents_->AddSeparator(); | 1204 context_menu_contents_->AddSeparator(ui::NORMAL_SEPARATOR); |
| 1205 context_menu_contents_->AddItemWithStringId(IDS_APP_SELECT_ALL, | 1205 context_menu_contents_->AddItemWithStringId(IDS_APP_SELECT_ALL, |
| 1206 IDS_APP_SELECT_ALL); | 1206 IDS_APP_SELECT_ALL); |
| 1207 } | 1207 } |
| 1208 | 1208 |
| 1209 } // namespace views | 1209 } // namespace views |
| OLD | NEW |