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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc

Issue 2854893004: cros: Hook AppCurrentWindowInternal setActivateOnPointer with aura side api (Closed)
Patch Set: update xml Created 3 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
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
index 3097a3595d1d0b1dab4cfcf614638ff65886c413..ef0430f6ed48a8cdae11a0bd5211ecf32ad44df2 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
@@ -373,6 +373,12 @@ void ChromeNativeAppWindowViewsAuraAsh::UpdateDraggableRegions(
}
}
+void ChromeNativeAppWindowViewsAuraAsh::SetActivateOnPointer(
+ bool activate_on_pointer) {
+ widget()->GetNativeWindow()->SetProperty(aura::client::kActivateOnPointerKey,
+ activate_on_pointer);
+}
+
void ChromeNativeAppWindowViewsAuraAsh::OnMenuClosed() {
menu_runner_.reset();
menu_model_adapter_.reset();

Powered by Google App Engine
This is Rietveld 408576698