OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_WIDGET_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_WIDGET_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "chrome/browser/chromeos/input_method/delayable_widget.h" | |
12 #include "ui/gfx/rect.h" | |
13 | |
14 namespace chromeos { | |
15 namespace input_method { | |
16 | |
17 class ModeIndicatorView; | |
18 | |
19 // ModeIndicatorWidget is the widget to display IME mode with bubble shape. | |
20 class ModeIndicatorWidget : public DelayableWidget { | |
21 public: | |
22 ModeIndicatorWidget(); | |
23 virtual ~ModeIndicatorWidget(); | |
24 | |
25 // Set cursor location, which is the base point to display this indicator. | |
26 // Bacisally this indicator is displayed underneath the cursor. | |
27 void SetCursorBounds(const gfx::Rect& corsor_bounds); | |
28 void SetLabelTextUtf8(const std::string& text_utf8); | |
29 | |
30 private: | |
31 ModeIndicatorView* mode_view_; | |
32 gfx::Rect cursor_bounds_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(ModeIndicatorWidget); | |
35 }; | |
36 | |
37 } // namespace input_method | |
38 } // namespace chromeos | |
39 | |
40 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_WIDGET_H_ | |
OLD | NEW |