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

Unified Diff: ui/views/mus/native_widget_mus.cc

Issue 1953313002: Eliminate PlatformWindowMus::Activate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | ui/views/mus/platform_window_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index 7bcc4ac7a17206250df694f2adab5f9ba3fdd336..27d6c85d44779b0ea369a8303e940a26816650a6 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -796,8 +796,8 @@ bool NativeWidgetMus::IsVisible() const {
}
void NativeWidgetMus::Activate() {
- if (window_tree_host_)
- window_tree_host_->platform_window()->Activate();
+ if (window_)
+ window_->SetFocus();
}
void NativeWidgetMus::Deactivate() {
« no previous file with comments | « no previous file | ui/views/mus/platform_window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698