| 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_VIEW_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_VIEW_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/compiler_specific.h" | |
| 12 #include "ui/gfx/size.h" | |
| 13 #include "ui/views/view.h" | |
| 14 | |
| 15 namespace views { | |
| 16 class Label; | |
| 17 } // namespace views | |
| 18 | |
| 19 namespace chromeos { | |
| 20 namespace input_method { | |
| 21 | |
| 22 // ModeIndicatorView is the view to contain the label representing the IME mode. | |
| 23 class ModeIndicatorView : public views::View { | |
| 24 public: | |
| 25 ModeIndicatorView(); | |
| 26 virtual ~ModeIndicatorView(); | |
| 27 | |
| 28 void SetLabelTextUtf8(const std::string& text_utf8); | |
| 29 | |
| 30 private: | |
| 31 // Overridden from views::View: | |
| 32 virtual void Layout() OVERRIDE; | |
| 33 | |
| 34 void Init(); | |
| 35 | |
| 36 views::Label* label_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(ModeIndicatorView); | |
| 39 }; | |
| 40 | |
| 41 } // namespace input_method | |
| 42 } // namespace chromeos | |
| 43 | |
| 44 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_VIEW_H_ | |
| OLD | NEW |