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

Side by Side Diff: ui/views/controls/textfield/native_textfield_win.cc

Issue 10837317: Setting the touch wrench menu as default menu for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another merge! 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 | Annotate | Revision Log
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 "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
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
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.cc ('k') | ui/views/examples/menu_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698