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

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

Issue 119154: Add comments on magic number 0xbb. They are VK_OEM_PLUS. I guess the original... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/l10n_util.h" 5 #include "app/l10n_util.h"
6 #include "app/l10n_util_win.h" 6 #include "app/l10n_util_win.h"
7 #include "app/win_util.h" 7 #include "app/win_util.h"
8 #include "base/clipboard.h" 8 #include "base/clipboard.h"
9 #include "base/gfx/native_theme.h" 9 #include "base/gfx/native_theme.h"
10 #include "base/scoped_clipboard_writer.h" 10 #include "base/scoped_clipboard_writer.h"
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 break; 439 break;
440 if (GetKeyState((key == 'V') ? VK_SHIFT : VK_CONTROL) >= 0) { 440 if (GetKeyState((key == 'V') ? VK_SHIFT : VK_CONTROL) >= 0) {
441 ScopedFreeze freeze(this, GetTextObjectModel()); 441 ScopedFreeze freeze(this, GetTextObjectModel());
442 OnBeforePossibleChange(); 442 OnBeforePossibleChange();
443 Paste(); 443 Paste();
444 OnAfterPossibleChange(); 444 OnAfterPossibleChange();
445 } 445 }
446 return; 446 return;
447 447
448 case 0xbb: // Ctrl-'='. Triggers subscripting, even in plain text mode. 448 case 0xbb: // Ctrl-'='. Triggers subscripting, even in plain text mode.
449 // We don't use VK_OEM_PLUS in case the macro isn't defined.
450 // (e.g., we don't have this symbol in embeded environment).
449 return; 451 return;
450 452
451 case VK_PROCESSKEY: 453 case VK_PROCESSKEY:
452 // This key event is consumed by an IME. 454 // This key event is consumed by an IME.
453 // We ignore this event because an IME sends WM_IME_COMPOSITION messages 455 // We ignore this event because an IME sends WM_IME_COMPOSITION messages
454 // when it updates the CRichEditCtrl text. 456 // when it updates the CRichEditCtrl text.
455 return; 457 return;
456 } 458 }
457 459
458 // CRichEditCtrl changes its text on WM_KEYDOWN instead of WM_CHAR for many 460 // CRichEditCtrl changes its text on WM_KEYDOWN instead of WM_CHAR for many
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 //////////////////////////////////////////////////////////////////////////////// 865 ////////////////////////////////////////////////////////////////////////////////
864 // NativeTextfieldWrapper, public: 866 // NativeTextfieldWrapper, public:
865 867
866 // static 868 // static
867 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( 869 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper(
868 Textfield* field) { 870 Textfield* field) {
869 return new NativeTextfieldWin(field); 871 return new NativeTextfieldWin(field);
870 } 872 }
871 873
872 } // namespace views 874 } // namespace views
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698