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

Side by Side Diff: ui/base/ime/win/imm32_manager.cc

Issue 1855463002: Remove "#pragma comment(lib" in ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | ui/views/BUILD.gn » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ime/win/imm32_manager.h" 5 #include "ui/base/ime/win/imm32_manager.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/win/scoped_comptr.h" 14 #include "base/win/scoped_comptr.h"
15 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
16 #include "ui/base/ime/composition_text.h" 16 #include "ui/base/ime/composition_text.h"
17 17
18 // "imm32.lib" is required by IMM32 APIs used in this file.
19 // NOTE(hbono): To comply with a comment from Darin, I have added
20 // this #pragma directive instead of adding "imm32.lib" to a project file.
21 #pragma comment(lib, "imm32.lib")
22
23 // Following code requires wchar_t to be same as char16. It should always be 18 // Following code requires wchar_t to be same as char16. It should always be
24 // true on Windows. 19 // true on Windows.
25 static_assert(sizeof(wchar_t) == sizeof(base::char16), 20 static_assert(sizeof(wchar_t) == sizeof(base::char16),
26 "wchar_t should be the same size as char16"); 21 "wchar_t should be the same size as char16");
27 22
28 /////////////////////////////////////////////////////////////////////////////// 23 ///////////////////////////////////////////////////////////////////////////////
29 // IMM32Manager 24 // IMM32Manager
30 25
31 namespace { 26 namespace {
32 27
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 | IME_CMODE_KATAKANA 613 | IME_CMODE_KATAKANA
619 | IME_CMODE_FULLSHAPE); 614 | IME_CMODE_FULLSHAPE);
620 break; 615 break;
621 default: 616 default:
622 *open = FALSE; 617 *open = FALSE;
623 break; 618 break;
624 } 619 }
625 } 620 }
626 621
627 } // namespace ui 622 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698