OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/common/metrics/pointer_metrics_recorder.h" | 5 #include "ash/common/metrics/pointer_metrics_recorder.h" |
6 | 6 |
7 #include "ash/common/shell_window_ids.h" | |
8 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | 7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |
9 #include "ash/common/wm_lookup.h" | 8 #include "ash/common/wm_lookup.h" |
10 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
11 #include "ash/common/wm_window.h" | 10 #include "ash/common/wm_window.h" |
| 11 #include "ash/public/cpp/shell_window_ids.h" |
12 #include "ash/shared/app_types.h" | 12 #include "ash/shared/app_types.h" |
13 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
14 #include "base/test/histogram_tester.h" | 14 #include "base/test/histogram_tester.h" |
15 #include "ui/events/event.h" | 15 #include "ui/events/event.h" |
16 #include "ui/views/pointer_watcher.h" | 16 #include "ui/views/pointer_watcher.h" |
17 #include "ui/views/widget/widget.h" | 17 #include "ui/views/widget/widget.h" |
18 | 18 |
19 using views::PointerWatcher; | 19 using views::PointerWatcher; |
20 | 20 |
21 namespace ash { | 21 namespace ash { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 target.get()); | 182 target.get()); |
183 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 3, 1); | 183 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 3, 1); |
184 | 184 |
185 window->SetAppType(static_cast<int>(AppType::DEFAULT_NOTE_TAKING_APP)); | 185 window->SetAppType(static_cast<int>(AppType::DEFAULT_NOTE_TAKING_APP)); |
186 pointer_metrics_recorder_->OnPointerEventObserved(pointer_event, gfx::Point(), | 186 pointer_metrics_recorder_->OnPointerEventObserved(pointer_event, gfx::Point(), |
187 target.get()); | 187 target.get()); |
188 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 4, 1); | 188 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 4, 1); |
189 } | 189 } |
190 | 190 |
191 } // namespace ash | 191 } // namespace ash |
OLD | NEW |