Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: chrome/browser/chromeos/status/input_method_menu_button.h

Issue 4162002: Reduce CPU usage for input method switching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 explicit InputMethodMenuButton(StatusAreaHost* host); 23 explicit InputMethodMenuButton(StatusAreaHost* host);
24 virtual ~InputMethodMenuButton() {} 24 virtual ~InputMethodMenuButton() {}
25 25
26 // views::View implementation. 26 // views::View implementation.
27 virtual gfx::Size GetPreferredSize(); 27 virtual gfx::Size GetPreferredSize();
28 virtual void OnLocaleChanged(); 28 virtual void OnLocaleChanged();
29 29
30 private: 30 private:
31 // InputMethodMenu implementation. 31 // InputMethodMenu implementation.
32 virtual void UpdateUI( 32 virtual void UpdateUI(const std::string& id,
satorux1 2010/12/01 06:40:18 id -> input_method_id?
Yusuke Sato 2010/12/01 07:36:41 Done.
33 const std::wstring& name, const std::wstring& tooltip); 33 const std::wstring& name,
34 const std::wstring& tooltip,
35 size_t num_active_input_methods);
34 virtual bool ShouldSupportConfigUI(); 36 virtual bool ShouldSupportConfigUI();
35 virtual void OpenConfigUI(); 37 virtual void OpenConfigUI();
36 38
37 StatusAreaHost* host_; 39 StatusAreaHost* host_;
38 40
39 DISALLOW_COPY_AND_ASSIGN(InputMethodMenuButton); 41 DISALLOW_COPY_AND_ASSIGN(InputMethodMenuButton);
40 }; 42 };
41 43
42 } // namespace chromeos 44 } // namespace chromeos
43 45
44 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_BUTTON_H_ 46 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698