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

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: fix rebase 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
« no previous file with comments | « components/exo/shell_surface.h ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 0c3a05c0d816439ae5059d805d55426eaa18a98f..8db2308a32b7a707932410169434f87b4936217a 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");
« no previous file with comments | « components/exo/shell_surface.h ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698