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

Side by Side Diff: ui/base/win/ime_input.cc

Issue 16431009: Use a direct include of strings headers in ui/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/win/ime_input.h ('k') | ui/base/win/message_box_win.h » ('j') | 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) 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/base/win/ime_input.h" 5 #include "ui/base/win/ime_input.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlcom.h> 8 #include <atlcom.h>
9 #include <msctf.h> 9 #include <msctf.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "base/win/scoped_comptr.h" 16 #include "base/win/scoped_comptr.h"
17 #include "third_party/skia/include/core/SkColor.h" 17 #include "third_party/skia/include/core/SkColor.h"
18 #include "ui/base/ime/composition_text.h" 18 #include "ui/base/ime/composition_text.h"
19 19
20 // "imm32.lib" is required by IMM32 APIs used in this file. 20 // "imm32.lib" is required by IMM32 APIs used in this file.
21 // NOTE(hbono): To comply with a comment from Darin, I have added 21 // NOTE(hbono): To comply with a comment from Darin, I have added
22 // this #pragma directive instead of adding "imm32.lib" to a project file. 22 // this #pragma directive instead of adding "imm32.lib" to a project file.
23 #pragma comment(lib, "imm32.lib") 23 #pragma comment(lib, "imm32.lib")
24 24
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 keystate[VK_RCONTROL] = 0; 579 keystate[VK_RCONTROL] = 0;
580 keystate[VK_LCONTROL] = 0; 580 keystate[VK_LCONTROL] = 0;
581 for (int i = 0; i <= VK_PACKET; ++i) { 581 for (int i = 0; i <= VK_PACKET; ++i) {
582 if (keystate[i] & kKeyDownMask) 582 if (keystate[i] & kKeyDownMask)
583 return false; 583 return false;
584 } 584 }
585 return true; 585 return true;
586 } 586 }
587 587
588 } // namespace ui 588 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/win/ime_input.h ('k') | ui/base/win/message_box_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698