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

Side by Side Diff: ash/system/ime_menu/ime_menu_tray_unittest.cc

Issue 2961313003: Touch gestures for System Tray/ IME/ Stylus/ Notifications (Closed)
Patch Set: Fixed nits. Created 3 years, 5 months 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
« no previous file with comments | « ash/system/ime_menu/ime_menu_tray.cc ('k') | ash/system/palette/palette_tray.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ash/system/ime_menu/ime_menu_tray.h" 5 #include "ash/system/ime_menu/ime_menu_tray.h"
6 6
7 #include "ash/accelerators/accelerator_controller.h" 7 #include "ash/accelerators/accelerator_controller.h"
8 #include "ash/accessibility_delegate.h" 8 #include "ash/accessibility_delegate.h"
9 #include "ash/ime/ime_controller.h" 9 #include "ash/ime/ime_controller.h"
10 #include "ash/public/interfaces/ime_info.mojom.h" 10 #include "ash/public/interfaces/ime_info.mojom.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Returns true if the IME menu tray is visible. 69 // Returns true if the IME menu tray is visible.
70 bool IsVisible() { return GetTray()->visible(); } 70 bool IsVisible() { return GetTray()->visible(); }
71 71
72 // Returns the label text of the tray. 72 // Returns the label text of the tray.
73 const base::string16& GetTrayText() { return GetTray()->label_->text(); } 73 const base::string16& GetTrayText() { return GetTray()->label_->text(); }
74 74
75 // Returns true if the background color of the tray is active. 75 // Returns true if the background color of the tray is active.
76 bool IsTrayBackgroundActive() { return GetTray()->is_active(); } 76 bool IsTrayBackgroundActive() { return GetTray()->is_active(); }
77 77
78 // Returns true if the IME menu bubble has been shown. 78 // Returns true if the IME menu bubble has been shown.
79 bool IsBubbleShown() { return GetTray()->IsImeMenuBubbleShown(); } 79 bool IsBubbleShown() { return GetTray()->GetBubbleView() != nullptr; }
80 80
81 // Returns true if emoji palatte is enabled for the current keyboard. 81 // Returns true if emoji palatte is enabled for the current keyboard.
82 bool IsEmojiEnabled() { return GetTray()->emoji_enabled_; } 82 bool IsEmojiEnabled() { return GetTray()->emoji_enabled_; }
83 83
84 // Returns true if handwirting input is enabled for the current keyboard. 84 // Returns true if handwirting input is enabled for the current keyboard.
85 bool IsHandwritingEnabled() { return GetTray()->handwriting_enabled_; } 85 bool IsHandwritingEnabled() { return GetTray()->handwriting_enabled_; }
86 86
87 // Returns true if voice input is enabled for the current keyboard. 87 // Returns true if voice input is enabled for the current keyboard.
88 bool IsVoiceEnabled() { return GetTray()->voice_enabled_; } 88 bool IsVoiceEnabled() { return GetTray()->voice_enabled_; }
89 89
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 InputMethodManager::FEATURE_VOICE)); 400 InputMethodManager::FEATURE_VOICE));
401 EXPECT_FALSE(input_method_manager->GetImeMenuFeatureEnabled( 401 EXPECT_FALSE(input_method_manager->GetImeMenuFeatureEnabled(
402 InputMethodManager::FEATURE_HANDWRITING)); 402 InputMethodManager::FEATURE_HANDWRITING));
403 EXPECT_TRUE(GetTray()->ShouldShowBottomButtons()); 403 EXPECT_TRUE(GetTray()->ShouldShowBottomButtons());
404 EXPECT_TRUE(IsEmojiEnabled()); 404 EXPECT_TRUE(IsEmojiEnabled());
405 EXPECT_FALSE(IsHandwritingEnabled()); 405 EXPECT_FALSE(IsHandwritingEnabled());
406 EXPECT_FALSE(IsVoiceEnabled()); 406 EXPECT_FALSE(IsVoiceEnabled());
407 } 407 }
408 408
409 } // namespace ash 409 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/ime_menu/ime_menu_tray.cc ('k') | ash/system/palette/palette_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698