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

Unified Diff: components/exo/shell_surface.cc

Issue 2331093002: UMA stats for stylus usage (Closed)
Patch Set: Changed ash/BUILD.gn Created 4 years, 3 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 941bdbc94689b47889aeb6ddaaf3bf13f0c68226..94872249d001172e8af3db1155176f500122c7ee 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -36,6 +36,10 @@
#include "ui/wm/core/shadow_types.h"
#include "ui/wm/core/window_util.h"
+#if defined(OS_CHROMEOS)
+#include "ash/shared/app_types.h"
+#endif
+
DECLARE_WINDOW_PROPERTY_TYPE(std::string*)
namespace exo {
@@ -940,6 +944,11 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) {
SetApplicationId(window, &application_id_);
SetMainSurface(window, surface_);
+#if defined(OS_CHROMEOS)
+ window->SetProperty(aura::client::kAppType,
+ static_cast<int>(ash::AppType::ARC_APP));
reveman 2016/09/27 20:39:00 This is incorrect. All shell surfaces are not arc
xiaoyinh(OOO Sep 11-29) 2016/09/29 20:37:44 Thanks for pointing it out. I have moved it to arc
+#endif
+
// Start tracking changes to window bounds and window state.
window->AddObserver(this);
ash::wm::WindowState* window_state = ash::wm::GetWindowState(window);

Powered by Google App Engine
This is Rietveld 408576698