| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_IME_INPUT_H_ | 5 #ifndef CHROME_BROWSER_IME_INPUT_H_ |
| 6 #define CHROME_BROWSER_IME_INPUT_H_ | 6 #define CHROME_BROWSER_IME_INPUT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "gfx/rect.h" | |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 16 #include "ui/gfx/rect.h" |
| 17 | 17 |
| 18 // This header file defines a struct and a class used for encapsulating IMM32 | 18 // This header file defines a struct and a class used for encapsulating IMM32 |
| 19 // APIs, controls IMEs attached to a window, and enables the 'on-the-spot' | 19 // APIs, controls IMEs attached to a window, and enables the 'on-the-spot' |
| 20 // input without deep knowledge about the APIs, i.e. knowledge about the | 20 // input without deep knowledge about the APIs, i.e. knowledge about the |
| 21 // language-specific and IME-specific behaviors. | 21 // language-specific and IME-specific behaviors. |
| 22 // The following items enumerates the simplest steps for an (window) | 22 // The following items enumerates the simplest steps for an (window) |
| 23 // application to control its IMEs with the struct and the class defined | 23 // application to control its IMEs with the struct and the class defined |
| 24 // this file. | 24 // this file. |
| 25 // 1. Add an instance of the ImeInput class to its window class. | 25 // 1. Add an instance of the ImeInput class to its window class. |
| 26 // (The ImeInput class needs a window handle.) | 26 // (The ImeInput class needs a window handle.) |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // * false: it does not create a system caret. | 303 // * false: it does not create a system caret. |
| 304 bool system_caret_; | 304 bool system_caret_; |
| 305 | 305 |
| 306 // The rectangle of the input caret retrieved from a renderer process. | 306 // The rectangle of the input caret retrieved from a renderer process. |
| 307 gfx::Rect caret_rect_; | 307 gfx::Rect caret_rect_; |
| 308 | 308 |
| 309 DISALLOW_COPY_AND_ASSIGN(ImeInput); | 309 DISALLOW_COPY_AND_ASSIGN(ImeInput); |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 #endif // CHROME_BROWSER_IME_INPUT_H_ | 312 #endif // CHROME_BROWSER_IME_INPUT_H_ |
| OLD | NEW |