Codebase list mozc / a2f1a99
Fix style nits under src/win32/. These are just mechanical style fixes. No behavior change is intended. BUG= TEST=compile REF_BUG=9010851 REF_CL=85724617,85724673,85857943 Yohei Yukawa 8 years ago
18 changed file(s) with 41 addition(s) and 32 deletion(s). Raw diff Collapse all Expand all
00 MAJOR=2
11 MINOR=17
2 BUILD=2172
2 BUILD=2173
33 REVISION=102
44 # NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
55 # downloaded by NaCl Mozc.
3838
3939 namespace mozc {
4040 namespace win32 {
41
4142 // ImmRegistrar is used to register and unregister the IME in the system.
4243 // This class can only be used in administrators account.
4344 class ImmRegistrar {
9091 // IME.
9192 // Returns S_OK if operation completes successfully.
9293 static HRESULT MovePreloadValueToTop(const KeyboardLayoutID &klid);
94
9395 private:
9496 ImmRegistrar() {}
9597 virtual ~ImmRegistrar() {}
9698 };
99
97100 } // namespace win32
98101 } // namespace mozc
99102
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifndef MOZC_WIN32_BASE_IME_IMMDEV_H_
30 #define MOZC_WIN32_BASE_IME_IMMDEV_H_
29 #ifndef MOZC_WIN32_BASE_IMMDEV_H_
30 #define MOZC_WIN32_BASE_IMMDEV_H_
3131
3232 #include <imm.h>
3333
295295 #ifdef __cplusplus
296296 } // extern "C"
297297 #endif
298 #endif // MOZC_WIN32_BASE_IME_IMMDEV_H_
298 #endif // MOZC_WIN32_BASE_IMMDEV_H_
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifndef MOZC_WIN32_IME_IME_KEYBOARD_
30 #define MOZC_WIN32_IME_IME_KEYBOARD_
29 #ifndef MOZC_WIN32_BASE_KEYBOARD_H_
30 #define MOZC_WIN32_BASE_KEYBOARD_H_
3131
3232 #include <windows.h>
3333
162162 };
163163 } // namespace win32
164164 } // namespace mozc
165 #endif // MOZC_WIN32_IME_IME_KEYBOARD_
165 #endif // MOZC_WIN32_BASE_KEYBOARD_H_
8282 // Set |id_| 'cleared'.
8383 void clear_id();
8484
85 private:
85 private:
8686 DWORD id_;
8787 bool has_id_;
8888 };
89
8990 } // namespace win32
9091 } // namespace mozc
92
9193 #endif // MOZC_WIN32_BASE_KEYBOARD_LAYOUT_ID_H_
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifndef MOZC_WIN32_BASE_KEYEVENT_HANDLER_
30 #define MOZC_WIN32_BASE_KEYEVENT_HANDLER_
29 #ifndef MOZC_WIN32_BASE_KEYEVENT_HANDLER_H_
30 #define MOZC_WIN32_BASE_KEYEVENT_HANDLER_H_
3131
3232 #include <windows.h>
3333
145145 };
146146 } // namespace win32
147147 } // namespace mozc
148 #endif // MOZC_WIN32_BASE_KEYEVENT_HANDLER_
148 #endif // MOZC_WIN32_BASE_KEYEVENT_HANDLER_H_
235235 klid, default_klid);
236236 return SUCCEEDED(result) ? ERROR_SUCCESS : ERROR_INSTALL_FAILURE;
237237 }
238 }
238
239 } // namespace
239240
240241 BOOL APIENTRY DllMain(HMODULE module,
241242 DWORD ul_reason_for_call,
3636 #define IDS_FORMAT_FUNCTION_AND_LINE 106
3737
3838 // Next default values for new objects
39 //
39 //
4040 #ifdef APSTUDIO_INVOKED
4141 #ifndef APSTUDIO_READONLY_SYMBOLS
4242 #define _APS_NEXT_RESOURCE_VALUE 110
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifndef MOZC_WIN32_IME_IME_CORE_
30 #define MOZC_WIN32_IME_IME_CORE_
29 #ifndef MOZC_WIN32_IME_IME_CORE_H_
30 #define MOZC_WIN32_IME_IME_CORE_H_
3131
3232 #include <windows.h>
3333
247247
248248 } // namespace win32
249249 } // namespace mozc
250 #endif // MOZC_WIN32_IME_IME_CORE_
250 #endif // MOZC_WIN32_IME_IME_CORE_H_
117117 DISALLOW_COPY_AND_ASSIGN(ScopedHIMCC);
118118 };
119119
120 } // namespace win32
120121 } // namespace mozc
121 } // namespace win32
122122
123123 #endif // MOZC_WIN32_IME_IME_SCOPED_CONTEXT_H_
4949 } // namespace commands
5050
5151 namespace win32 {
52
5253 struct PrivateContext;
5354 class IndicatorVisibilityTracker;
5455 class ImeCore;
8687 bool FillCharPosition(commands::RendererCommand_ApplicationInfo *info) const;
8788 bool FillCaretInfo(commands::RendererCommand_ApplicationInfo *info) const;
8889 bool FillFontInfo(commands::RendererCommand_ApplicationInfo *info) const;
90
8991 private:
9092 const HIMC context_handle_;
9193 const ScopedHIMC<INPUTCONTEXT> input_context_;
9294 const ScopedHIMCC<PrivateContext> private_context_;
9395 };
96
9497 } // namespace win32
9598 } // namespace mozc
9699
3737 import optparse
3838 import os
3939 import re
40 import shutil
4140 import subprocess
4241 import sys
4342
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifndef MOZC_WIN32_TIP_TIP_MODULE_H_
30 #define MOZC_WIN32_TIP_TIP_MODULE_H_
29 #ifndef MOZC_WIN32_TIP_TIP_DLL_MODULE_H_
30 #define MOZC_WIN32_TIP_TIP_DLL_MODULE_H_
3131
3232 #include <Windows.h>
3333
6060 } // namespace win32
6161 } // namespace mozc
6262
63 #endif // MOZC_WIN32_TIP_TIP_MODULE_H_
63 #endif // MOZC_WIN32_TIP_TIP_DLL_MODULE_H_
167167 return false;
168168 }
169169 return SUCCEEDED(edit_session_result);
170 };
170 }
171171
172172 // This class is an implementation class for the ITfEditSession classes, which
173173 // is an observer for exclusively updating the text store of a TSF thread
237237 bool OnUpdateOnOffModeAsync(TipTextService *text_service,
238238 ITfContext *context,
239239 bool open) {
240 const auto action =text_service->GetThreadContext()->GetInputModeManager()->
240 const auto action = text_service->GetThreadContext()->GetInputModeManager()->
241241 OnChangeOpenClose(open);
242242 if (action == TipInputModeManager::kUpdateUI) {
243243 return OnLayoutChangedAsyncImpl(text_service, context);
244244 }
245245 return true;
246 };
246 }
247247
248248 // This class is an implementation class for the ITfEditSession classes, which
249249 // is an observer for exclusively updating the text store of a TSF thread
359359 return false;
360360 }
361361 return SUCCEEDED(edit_session_result);
362 };
362 }
363363
364364 // This class is an implementation class for the ITfEditSession classes, which
365365 // is an observer for exclusively updating the text store of a TSF thread
437437 return false;
438438 }
439439 return SUCCEEDED(edit_session_result);
440 };
440 }
441441
442442 bool TurnOnImeAndTryToReconvertFromIme(TipTextService *text_service,
443443 ITfContext *context) {
2626 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29 #ifndef MOZC_WIN32_GIMEJP10_IME_ENUM_DISPLAY_ATTRIBUTES_H_
30 #define MOZC_WIN32_GIMEJP10_IME_ENUM_DISPLAY_ATTRIBUTES_H_
29 #ifndef MOZC_WIN32_TIP_TIP_ENUM_DISPLAY_ATTRIBUTES_H_
30 #define MOZC_WIN32_TIP_TIP_ENUM_DISPLAY_ATTRIBUTES_H_
3131
3232 #include <windows.h>
3333 #include <rpcsal.h>
7272 } // namespace win32
7373 } // namespace mozc
7474
75 #endif // MOZC_WIN32_GIMEJP10_IME_ENUM_DISPLAY_ATTRIBUTES_H_
75 #endif // MOZC_WIN32_TIP_TIP_ENUM_DISPLAY_ATTRIBUTES_H_
6060 #ifdef GOOGLE_JAPANESE_INPUT_BUILD
6161
6262 // {D8C8D5EB-8213-47CE-95B7-BA3F67757F94}
63 const GUID kTipLangBarItem_Button= {
63 const GUID kTipLangBarItem_Button = {
6464 0xd8c8d5eb, 0x8213, 0x47ce, {0x95, 0xb7, 0xba, 0x3f, 0x67, 0x75, 0x7f, 0x94}
6565 };
6666
6464 static bool OnDllProcessAttach(HINSTANCE module_handle, bool static_loading);
6565 static void OnDllProcessDetach(HINSTANCE module_handle,
6666 bool process_shutdown);
67
6768 private:
6869 DISALLOW_IMPLICIT_CONSTRUCTORS(TipUiHandler);
6970 };
304304 return false;
305305 }
306306
307 RendererCommand::Point *top_left=
307 RendererCommand::Point *top_left =
308308 app_info->mutable_composition_target()->mutable_top_left();
309309 top_left->set_x(text_rect.left);
310310 top_left->set_y(text_rect.top);
312312 app_info->mutable_composition_target()->set_line_height(
313313 text_rect.bottom - text_rect.top);
314314
315 RendererCommand::Rectangle *area=
315 RendererCommand::Rectangle *area =
316316 app_info->mutable_composition_target()->mutable_document_area();
317317 area->set_left(document_rect.left);
318318 area->set_top(document_rect.top);