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

Unified Diff: ash/shell.cc

Issue 2271223003: Revert "Adding the following stylus metrics:" (Closed)
Patch Set: Created 4 years, 4 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/shell.h ('k') | ash/wm/stylus_metrics_recorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 33ced2ef402428d468238c8a9cf622420793486a..505e943e336ea8cda7d0bb667d8638340b9e2284 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -128,7 +128,6 @@
#include "ash/system/chromeos/power/video_activity_notifier.h"
#include "ash/touch/touch_transformer_controller.h"
#include "ash/virtual_keyboard_controller.h"
-#include "ash/wm/stylus_metrics_recorder.h"
#include "base/bind_helpers.h"
#include "base/sys_info.h"
#include "chromeos/audio/audio_a11y_controller.h"
@@ -553,9 +552,6 @@ Shell::~Shell() {
RemovePostTargetHandler(toplevel_window_event_handler_.get());
RemovePreTargetHandler(system_gesture_filter_.get());
RemovePreTargetHandler(mouse_cursor_filter_.get());
-#if defined(OS_CHROMEOS)
- RemovePreTargetHandler(stylus_metrics_recorder_.get());
-#endif
RemovePreTargetHandler(modality_filter_.get());
// TooltipController is deleted with the Shell so removing its references.
@@ -644,7 +640,9 @@ Shell::~Shell() {
#if defined(OS_CHROMEOS)
touch_transformer_controller_.reset();
- stylus_metrics_recorder_.reset();
+#endif // defined(OS_CHROMEOS)
+
+#if defined(OS_CHROMEOS)
audio_a11y_controller_.reset();
#endif // defined(OS_CHROMEOS)
@@ -866,14 +864,6 @@ void Shell::Init(const ShellInitParams& init_params) {
mouse_cursor_filter_.reset(new MouseCursorEventFilter());
PrependPreTargetHandler(mouse_cursor_filter_.get());
-#if defined(OS_CHROMEOS)
- // |stylus_metrics_recorder| records stylus metrics for certain events.
- // It does not handle/consume any events, so prepend it as a pre-target hander
- // before events are consumed elsewhere.
- stylus_metrics_recorder_.reset(new StylusMetricsRecorder());
- PrependPreTargetHandler(stylus_metrics_recorder_.get());
-#endif
-
// Create Controllers that may need root window.
// TODO(oshima): Move as many controllers before creating
// RootWindowController as possible.
« no previous file with comments | « ash/shell.h ('k') | ash/wm/stylus_metrics_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698