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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2331093002: UMA stats for stylus usage (Closed)
Patch Set: nit and 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
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/metrics/pointer_metrics_recorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index 0c7184d4a459d01a7d8bb45e455d516d7ff4c6cd..097733f1e1a7cf595aed0621604e54eefd359d09 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -188,6 +188,14 @@ ui::wm::WindowType WmWindowAura::GetType() const {
return window_->type();
}
+int WmWindowAura::GetAppType() const {
+ return window_->GetProperty(aura::client::kAppType);
+}
+
+void WmWindowAura::SetAppType(int app_type) const {
+ window_->SetProperty(aura::client::kAppType, app_type);
+}
+
bool WmWindowAura::IsBubble() {
views::Widget* widget = views::Widget::GetWidgetForNativeView(window_);
return widget->widget_delegate()->AsBubbleDialogDelegate() != nullptr;
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/metrics/pointer_metrics_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698