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

Unified Diff: ash/common/system/chromeos/palette/palette_tool_manager.cc

Issue 2346833003: cros: Hide stylus tools on various sign-in screens, disable active mode when inserting stylus. (Closed)
Patch Set: Initial upload Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/system/chromeos/palette/palette_tool_manager.cc
diff --git a/ash/common/system/chromeos/palette/palette_tool_manager.cc b/ash/common/system/chromeos/palette/palette_tool_manager.cc
index d9a79b806079e45e7820862a2219a1e5768f5ab0..89ba99eed43ccde76c7cb8fa74b879cc5341d0d4 100644
--- a/ash/common/system/chromeos/palette/palette_tool_manager.cc
+++ b/ash/common/system/chromeos/palette/palette_tool_manager.cc
@@ -106,6 +106,12 @@ void PaletteToolManager::NotifyViewsDestroyed() {
tool->OnViewDestroyed();
}
+void PaletteToolManager::DisableActiveTool(PaletteGroup group) {
+ PaletteToolId tool_id = GetActiveTool(group);
+ if (tool_id != PaletteToolId::NONE)
+ DeactivateTool(tool_id);
+}
+
void PaletteToolManager::EnableTool(PaletteToolId tool_id) {
ActivateTool(tool_id);
}
« no previous file with comments | « ash/common/system/chromeos/palette/palette_tool_manager.h ('k') | ash/common/system/chromeos/palette/palette_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698