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

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

Issue 2331093002: UMA stats for stylus usage (Closed)
Patch Set: rebase 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: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
index dfac3ccb9df96687260667119b6d559880f36475..f3b56c14e0415023e5c2d121f4bff455be735917 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
@@ -23,6 +23,10 @@
#include "ui/views/controls/webview/webview.h"
#include "ui/views/widget/widget.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/ui/ash/metrics/stylus_metrics_recorder_chromeos.h"
+#endif
+
using extensions::AppWindow;
namespace {
@@ -141,6 +145,11 @@ void ChromeNativeAppWindowViews::InitializeDefaultWindow(
OnBeforeWidgetInit(create_params, &init_params, widget());
widget()->Init(init_params);
+#if defined(OS_CHROMEOS)
+ widget()->GetNativeWindow()->SetProperty(chromeos::kStylusWindowTypeBucket,
+ chromeos::StylusWindowType::APP);
+#endif
+
// The frame insets are required to resolve the bounds specifications
// correctly. So we set the window bounds and constraints now.
gfx::Insets frame_insets = GetFrameInsets();

Powered by Google App Engine
This is Rietveld 408576698