| Index: ash/common/accelerators/accelerator_router.h
|
| diff --git a/ash/common/accelerators/accelerator_router.h b/ash/common/accelerators/accelerator_router.h
|
| index 048145f8f9fdbafe9b08315c16b0adad52fdd049..a849d5afa52d22e0911d32a8b1e91f364039baa3 100644
|
| --- a/ash/common/accelerators/accelerator_router.h
|
| +++ b/ash/common/accelerators/accelerator_router.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "ash/ash_export.h"
|
| #include "base/macros.h"
|
| +#include "base/time/time.h"
|
|
|
| namespace ui {
|
| class Accelerator;
|
| @@ -41,6 +42,14 @@ class ASH_EXPORT AcceleratorRouter {
|
| const ui::KeyEvent& event,
|
| const ui::Accelerator& accelerator);
|
|
|
| + // Records a histogram on how long the "Search" key is held when a user
|
| + // presses an accelerator that involes the "Search" key.
|
| + void RecordSearchKeyStats(const ui::Accelerator& accelerator);
|
| +
|
| + enum SearchKeyState { RELEASED = 0, PRESSED, RECORDED };
|
| + SearchKeyState search_key_state_ = RELEASED;
|
| + base::TimeTicks search_key_pressed_timestamp_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AcceleratorRouter);
|
| };
|
|
|
|
|