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

Unified Diff: ash/mus/window_manager.cc

Issue 2650833002: Set focusibility correctly when initializing a window in mus+ash. (Closed)
Patch Set: update mus_demo. Created 3 years, 11 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/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index 8d7f21ed199732b9a745f33942fefce63c5022a2..7abca4987c975e5a51f45907dbc85726324884bf 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -321,6 +321,10 @@ bool WindowManager::OnWmSetProperty(
name == ui::mojom::WindowManager::kWindowTitle_Property;
}
+void WindowManager::OnWmSetCanFocus(aura::Window* window, bool can_focus) {
+ window_tree_client()->SetCanFocus(window, can_focus);
sky 2017/01/26 18:59:04 This value (and the initial one) should feed into
Hadi 2017/01/26 20:23:17 I think Done. Can you please take a look to see if
+}
+
aura::Window* WindowManager::OnWmCreateTopLevelWindow(
ui::mojom::WindowType window_type,
std::map<std::string, std::vector<uint8_t>>* properties) {

Powered by Google App Engine
This is Rietveld 408576698