| Index: ash/common/system/chromeos/palette/tools/magnifier_mode.h
|
| diff --git a/ash/common/system/chromeos/palette/tools/magnifier_mode.h b/ash/common/system/chromeos/palette/tools/magnifier_mode.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0aa6764b28b2be1a80db9c36d477c56d7ef60ef7
|
| --- /dev/null
|
| +++ b/ash/common/system/chromeos/palette/tools/magnifier_mode.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_MAGNIFIER_MODE_H_
|
| +#define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_MAGNIFIER_MODE_H_
|
| +
|
| +#include "ash/common/system/chromeos/palette/common_palette_tool.h"
|
| +
|
| +namespace ash {
|
| +
|
| +// Exposes a palette tool that lets the user enable a partial screen magnifier
|
| +// (ie, a spyglass) that dynamically appears when pressing the screen.
|
| +class MagnifierMode : public CommonPaletteTool {
|
| + public:
|
| + explicit MagnifierMode(Delegate* delegate);
|
| + ~MagnifierMode() override;
|
| +
|
| + private:
|
| + // PaletteTool overrides.
|
| + PaletteGroup GetGroup() const override;
|
| + PaletteToolId GetToolId() const override;
|
| + gfx::VectorIconId GetActiveTrayIcon() override;
|
| + void OnEnable() override;
|
| + void OnDisable() override;
|
| + views::View* CreateView() override;
|
| +
|
| + // CommonPaletteTool overrides.
|
| + gfx::VectorIconId GetPaletteIconId() override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MagnifierMode);
|
| +};
|
| +
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_MAGNIFIER_MODE_H_
|
|
|