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

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

Issue 2331093002: UMA stats for stylus usage (Closed)
Patch Set: fix enum value in histograms.xml 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_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 48a8707a90744feef8222a31196d507a0bc3360b..fa78eacbf0625d269ffaac6469afd180626ae981 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
@@ -19,6 +19,7 @@
#include "ash/wm/window_properties.h"
#include "ash/wm/window_state_aura.h"
#include "chrome/browser/ui/ash/ash_util.h"
+#include "chrome/browser/ui/ash/metrics/stylus_metrics_recorder.h"
xiyuan 2016/09/16 20:07:54 Depending on whether we want to make StylusMetrics
xiaoyinh(OOO Sep 11-29) 2016/09/16 22:34:25 This file seems to be used in chromeos only, do I
xiyuan 2016/09/16 22:38:56 Right. This file is chromeos only per c/b/ui/BUILD
#include "chrome/browser/ui/ash/multi_user/multi_user_context_menu.h"
#include "services/ui/public/cpp/property_type_converters.h"
#include "services/ui/public/cpp/window.h"
@@ -132,6 +133,9 @@ void ChromeNativeAppWindowViewsAuraAsh::InitializeWindow(
widget()->GetNativeWindow()->SetProperty(aura::client::kShowStateKey,
create_params.state);
}
+ widget()->GetNativeWindow()->SetProperty(
+ chromeos::kStylusWindowTypeBucket,
+ chromeos::StylusWindowType::WINDOW_TYPE_APP);
}
void ChromeNativeAppWindowViewsAuraAsh::OnBeforeWidgetInit(

Powered by Google App Engine
This is Rietveld 408576698