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

Unified Diff: extensions/browser/api/app_current_window_internal/app_current_window_internal_api.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: extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
diff --git a/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc b/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
index 74f6c9d30bcf428fe50b875e0f7902cd5b099b49..779e9a2cec0020971a97fe8e7f82f38a1f98cb90 100644
--- a/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
+++ b/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
@@ -31,6 +31,8 @@ namespace SetShape = app_current_window_internal::SetShape;
namespace SetAlwaysOnTop = app_current_window_internal::SetAlwaysOnTop;
namespace SetVisibleOnAllWorkspaces =
app_current_window_internal::SetVisibleOnAllWorkspaces;
+namespace SetActivateOnPointer =
+ app_current_window_internal::SetActivateOnPointer;
using app_current_window_internal::Bounds;
using app_current_window_internal::Region;
@@ -377,4 +379,13 @@ AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction::Run() {
return RespondNow(NoArguments());
}
+ExtensionFunction::ResponseAction
+AppCurrentWindowInternalSetActivateOnPointerFunction::Run() {
+ std::unique_ptr<SetActivateOnPointer::Params> params(
+ SetActivateOnPointer::Params::Create(*args_));
+ CHECK(params.get());
+ window()->GetBaseWindow()->SetActivateOnPointer(params->activate_on_pointer);
+ return RespondNow(NoArguments());
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698