| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_STATUS_INPUT_METHOD_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_BUTTON_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_BUTTON_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "chrome/browser/chromeos/status/input_method_menu.h" | 11 #include "chrome/browser/chromeos/status/input_method_menu.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 40 virtual void OpenConfigUI(); | 40 virtual void OpenConfigUI(); |
| 41 | 41 |
| 42 // Updates the UI from the current input method. | 42 // Updates the UI from the current input method. |
| 43 void UpdateUIFromCurrentInputMethod(); | 43 void UpdateUIFromCurrentInputMethod(); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 // Returns true if the Chrome window where the button lives is active. | 46 // Returns true if the Chrome window where the button lives is active. |
| 47 bool WindowIsActive(); | 47 bool WindowIsActive(); |
| 48 | 48 |
| 49 scoped_ptr<InputMethodMenu> menu_; | 49 scoped_ptr<InputMethodMenu> menu_; |
| 50 StatusAreaHost* host_; | |
| 51 | 50 |
| 52 DISALLOW_COPY_AND_ASSIGN(InputMethodMenuButton); | 51 DISALLOW_COPY_AND_ASSIGN(InputMethodMenuButton); |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 } // namespace chromeos | 54 } // namespace chromeos |
| 56 | 55 |
| 57 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_BUTTON_H_ | 56 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_BUTTON_H_ |
| OLD | NEW |