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

Unified Diff: components/exo/shell_surface.cc

Issue 2530073002: Add kAccessibilityFocusFallsbackToWidget property (Closed)
Patch Set: Remove unnecessary blank line. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index d8b5e7bf93935ef26dd9c7197b5e23f402382458..cd7e94ccfc4c59f356366976a98badb856a38d71 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1020,6 +1020,11 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) {
widget_ = new ShellSurfaceWidget(this);
widget_->Init(params);
+ views::View* root_view = widget_->GetRootView();
+ if (root_view != nullptr) {
reveman 2016/11/30 17:00:40 nit: s/root_view != nullptr/root_view/ when is th
yawano 2016/12/01 00:24:23 Done. I don't come up case where it becomes null.
+ root_view->SetFocusBehavior(views::View::FocusBehavior::NEVER);
reveman 2016/11/30 17:00:40 Can you explain in the description of this change
yawano 2016/12/01 00:24:23 Added comment.
+ }
+
aura::Window* window = widget_->GetNativeWindow();
window->SetName("ExoShellSurface");
window->AddChild(surface_->window());

Powered by Google App Engine
This is Rietveld 408576698