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

Unified Diff: ash/metrics/pointer_metrics_recorder.cc

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) 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
« no previous file with comments | « ash/high_contrast/high_contrast_controller.cc ('k') | ash/metrics/pointer_metrics_recorder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/metrics/pointer_metrics_recorder.cc
diff --git a/ash/metrics/pointer_metrics_recorder.cc b/ash/metrics/pointer_metrics_recorder.cc
index 65d6f5457e907b1d31355dce9f004bba5bcdc847..f216be6a844692dd47ec03097c676a9ae48142e2 100644
--- a/ash/metrics/pointer_metrics_recorder.cc
+++ b/ash/metrics/pointer_metrics_recorder.cc
@@ -8,8 +8,9 @@
#include "ash/shell.h"
#include "ash/shell_port.h"
#include "ash/wm/maximize_mode/maximize_mode_controller.h"
-#include "ash/wm_window.h"
#include "base/metrics/histogram_macros.h"
+#include "ui/aura/client/aura_constants.h"
+#include "ui/aura/window.h"
#include "ui/events/event_constants.h"
#include "ui/views/widget/widget.h"
@@ -39,9 +40,9 @@ int GetDestination(views::Widget* target) {
if (!target)
return static_cast<int>(AppType::OTHERS);
- WmWindow* window = WmWindow::Get(target->GetNativeWindow());
+ aura::Window* window = target->GetNativeWindow();
DCHECK(window);
- return window->GetAppType();
+ return window->GetProperty(aura::client::kAppType);
}
void RecordUMA(ui::EventPointerType type, views::Widget* target) {
« no previous file with comments | « ash/high_contrast/high_contrast_controller.cc ('k') | ash/metrics/pointer_metrics_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698