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

Unified Diff: chrome/browser/chromeos/status/input_method_menu_button.cc

Issue 8585031: [cros, Aura] Make screen_mode static variable in StatusAreaViewChromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/input_method_menu_button.cc
diff --git a/chrome/browser/chromeos/status/input_method_menu_button.cc b/chrome/browser/chromeos/status/input_method_menu_button.cc
index 2044cdaee7080f92d1ee6e9af4eb4bcc9b1e72e2..47dd36c29c9144db78a6252a37e99872467d5cfc 100644
--- a/chrome/browser/chromeos/status/input_method_menu_button.cc
+++ b/chrome/browser/chromeos/status/input_method_menu_button.cc
@@ -9,6 +9,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/input_method/input_method_manager.h"
#include "chrome/browser/chromeos/input_method/input_method_util.h"
+#include "chrome/browser/chromeos/status/status_area_view_chromeos.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
@@ -30,9 +31,8 @@ PrefService* GetPrefService() {
class MenuImpl : public chromeos::InputMethodMenu {
public:
MenuImpl(chromeos::InputMethodMenuButton* button,
- PrefService* pref_service,
- chromeos::StatusAreaViewChromeos::ScreenMode screen_mode)
- : InputMethodMenu(pref_service, screen_mode, false), button_(button) {}
+ PrefService* pref_service)
+ : InputMethodMenu(pref_service, false), button_(button) {}
private:
// InputMethodMenu implementation.
@@ -62,11 +62,9 @@ namespace chromeos {
// InputMethodMenuButton
InputMethodMenuButton::InputMethodMenuButton(
- StatusAreaButton::Delegate* delegate,
- StatusAreaViewChromeos::ScreenMode screen_mode)
+ StatusAreaButton::Delegate* delegate)
: StatusAreaButton(delegate, this),
- menu_(new MenuImpl(this, GetPrefService(), screen_mode)),
- screen_mode_(screen_mode) {
+ menu_(new MenuImpl(this, GetPrefService())) {
set_id(VIEW_ID_STATUS_BUTTON_INPUT_METHOD);
UpdateUIFromCurrentInputMethod();
}
@@ -119,7 +117,7 @@ void InputMethodMenuButton::UpdateUI(const std::string& input_method_id,
const bool hide_button =
num_active_input_methods == 1 &&
input_method::InputMethodUtil::IsKeyboardLayout(input_method_id) &&
- screen_mode_ == StatusAreaViewChromeos::BROWSER_MODE;
+ StatusAreaViewChromeos::IsBrowserMode();
SetVisible(!hide_button);
SetText(name);
SetTooltipText(tooltip);
« no previous file with comments | « chrome/browser/chromeos/status/input_method_menu_button.h ('k') | chrome/browser/chromeos/status/network_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698