Codebase list mozc / 4ed6d8d
Deprecate namespace.h BUG=#392 TEST=unittest REF_BUG=71969651 REF_CL=185082398,185490018 REF_TIME=2018-02-13T16:57:03+09:00 REF_TIME_RAW=1518508623 +0900 Hiroyuki Komatsu 6 years ago
21 changed file(s) with 75 addition(s) and 50 deletion(s). Raw diff Collapse all Expand all
3535 #else // MOZC_USE_PEPPER_FILE_IO
3636 #include <fstream>
3737 #endif // MOZC_USE_PEPPER_FILE_IO
38
39 #include "base/port_string.h"
3840
3941 namespace mozc {
4042
3434 #include <string>
3535
3636 #include "base/flags.h"
37 #include "base/namespace.h"
3837 #include "base/port.h"
3938
4039 namespace mozc {
3131
3232 #include <string>
3333
34 #include "base/port_string.h"
35
3436 #ifdef OS_MACOSX
3537 namespace mozc {
3638 class MacProcess {
+0
-36
src/base/namespace.h less more
0 // Copyright 2010-2018, Google Inc.
1 // All rights reserved.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are
5 // met:
6 //
7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer
11 // in the documentation and/or other materials provided with the
12 // distribution.
13 // * Neither the name of Google Inc. nor the names of its
14 // contributors may be used to endorse or promote products derived from
15 // this software without specific prior written permission.
16 //
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 #ifndef MOZC_BASE_NAMESPACE_H_
30 #define MOZC_BASE_NAMESPACE_H_
31 #ifdef __cplusplus
32 namespace std {}
33 using namespace std;
34 #endif // __cplusplus
35 #endif // MOZC_BASE_NAMESPACE_H_
2828
2929 #ifndef MOZC_BASE_PORT_H_
3030 #define MOZC_BASE_PORT_H_
31
32 #include "base/port_string.h"
3133
3234 // Check duplicate OS_XXX definition.
3335
0 // Copyright 2010-2018, Google Inc.
1 // All rights reserved.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are
5 // met:
6 //
7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer
11 // in the documentation and/or other materials provided with the
12 // distribution.
13 // * Neither the name of Google Inc. nor the names of its
14 // contributors may be used to endorse or promote products derived from
15 // this software without specific prior written permission.
16 //
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 #ifndef MOZC_BASE_PORT_STRING_H_
30 #define MOZC_BASE_PORT_STRING_H_
31
32 #include <string>
33
34 #ifndef HAS_GLOBAL_STRING
35 using std::string;
36 #endif // HAS_GLOBAL_STRING
37
38 #endif // MOZC_BASE_PORT_STRING_H_
3939 #include <string>
4040
4141 // Include namespace.h instead of port.h to reduce a dependency.
42 #include "base/namespace.h"
42 #include "base/port_string.h"
4343
4444 namespace mozc {
4545
3535 #include <map>
3636 #include <string>
3737 #include <utility>
38
39 #include "base/port_string.h"
3840
3941 namespace mozc {
4042 namespace composer {
7577 const ModeSwitching display_mode,
7678 const ModeSwitching input_mode);
7779
78 // map<key, pair<display_mode, input_mode> >.
80 // map<key, pair<display_mode, input_mode>>.
7981 std::map<string, std::pair<ModeSwitching, ModeSwitching>> patterns_;
8082 };
8183
3030 #define MOZC_COMPOSER_INTERNAL_TRANSLITERATOR_INTERFACE_H_
3131
3232 #include <string>
33
34 #include "base/port_string.h"
3335
3436 namespace mozc {
3537 namespace composer {
2929
3030 MAJOR=2
3131 MINOR=23
32 BUILD=2805
32 BUILD=2806
3333 REVISION=102
3434 # This version represents the version of Mozc IME engine (converter, predictor,
3535 # etc.). This version info is included both in the Mozc server and in the Mozc
3535
3636 #include <string>
3737
38 #include "base/port_string.h"
39
3840 namespace mozc {
3941
4042 class UserDataManagerInterface {
6969 '-Wno-deprecated-declarations',
7070 '-Wwrite-strings',
7171 '<@(extra_warning_cflags)',
72
73 '-Wno-unknown-warning-option',
74 '-Wno-inconsistent-missing-override',
7275 ],
7376
7477 # gcc_cflags will be shared with Mac and Linux
7679 '-fmessage-length=0',
7780 '-fno-strict-aliasing',
7881 '-funsigned-char',
79 '-include base/namespace.h',
8082 '-pipe',
8183 '-pthread',
8284 ],
319319 'EnableFunctionLevelLinking': 'true', # /Gy
320320 'EnableIntrinsicFunctions': 'true', # /Oi
321321 'ExceptionHandling': '2', # /EHs
322 'ForcedIncludeFiles': ['base/namespace.h'],
323 # /FI<header_file.h>
324322 'SuppressStartupBanner': 'true', # /nologo
325323 'TreatWChar_tAsBuiltInType': 'false', # /Zc:wchar_t-
326324 'WarningLevel': '3', # /W3
2828
2929 #import <InputMethodKit/InputMethodKit.h>
3030 #import "mac/common.h"
31
32 #include <string>
33
34 #include "base/port_string.h"
3135
3236 // For mozc::commands::CompositionMode
3337 #include "protocol/renderer_command.pb.h"
3030 #define MOZC_PREDICTION_PREDICTOR_INTERFACE_H_
3131
3232 #include <string>
33
34 #include "base/port_string.h"
3335
3436 namespace mozc {
3537
3030 #define MOZC_RENDERER_MAC_MAC_VIEW_UTIL_H_
3131
3232 #import <Cocoa/Cocoa.h>
33
34 #include <string>
35
3336 #include "base/coordinates.h"
37 #include "base/port_string.h"
3438 #include "protocol/renderer_style.pb.h"
3539
3640 namespace mozc {
3131
3232 #include <gtk/gtk.h>
3333 #include <string>
34
35 #include "base/port_string.h"
3436
3537 namespace mozc {
3638
3131
3232 #include <string>
3333
34 #include "base/port_string.h"
35
3436 namespace mozc {
3537
3638 class CalculatorInterface {
3333 #include <string>
3434 #include <vector>
3535
36 #include "base/port_string.h"
37
3638 namespace mozc {
3739
3840 void OutputExistenceHeader(const std::vector<string> &entries,
115115 ],
116116 }],
117117 ],
118 'xcode_settings': {
119 # Remove the force included file. This is not necessary for third
120 # party libraries, and it causes a build error.
121 'OTHER_CFLAGS!' : [
122 '-include base/namespace.h',
123 ],
124 },
125118 },
126119 {
127120 'target_name': 'gen_mozc_data_dir_header',
3131
3232 #include <string>
3333
34 #include "base/port_string.h"
35
3436 namespace mozc {
3537 namespace ibus {
3638