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/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 Loading... |
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 |
OLD | NEW |