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

Unified Diff: components/exo/shell_surface.cc

Issue 2184103003: arc: Implement proper Arc window activation for task moving to front. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wayland based Created 4 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 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 94b926db05c10437d8567a77e577d0e8188a5777..06cf6f8696047ca84d4e0c95128403f318aafd6a 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -335,6 +335,15 @@ void ShellSurface::SetParent(ShellSurface* parent) {
}
}
+void ShellSurface::Activate() {
+ TRACE_EVENT0("exo", "ShellSurface::Activate");
+
+ if (!widget_ || widget_->IsActive())
+ return;
+
+ widget_->Activate();
+}
+
void ShellSurface::Maximize() {
TRACE_EVENT0("exo", "ShellSurface::Maximize");

Powered by Google App Engine
This is Rietveld 408576698