| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/common/palette_delegate.h" | 10 #include "ash/common/palette_delegate.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "ui/events/devices/input_device_event_observer.h" |
| 14 | 15 |
| 15 namespace chromeos { | 16 namespace chromeos { |
| 16 | 17 |
| 17 // A class which allows the Ash palette to perform chrome actions. | 18 // A class which allows the Ash palette to perform chrome actions. |
| 18 class PaletteDelegateChromeOS : public ash::PaletteDelegate { | 19 class PaletteDelegateChromeOS : public ash::PaletteDelegate, |
| 20 public ui::InputDeviceEventObserver { |
| 19 public: | 21 public: |
| 20 PaletteDelegateChromeOS(); | 22 PaletteDelegateChromeOS(); |
| 21 ~PaletteDelegateChromeOS() override; | 23 ~PaletteDelegateChromeOS() override; |
| 22 | 24 |
| 23 private: | 25 private: |
| 24 // ash::PaletteDelegate: | 26 // ash::PaletteDelegate: |
| 25 void CreateNote() override; | 27 void CreateNote() override; |
| 26 bool HasNoteApp() override; | 28 bool HasNoteApp() override; |
| 27 void SetPartialMagnifierState(bool enabled) override; | 29 void SetPartialMagnifierState(bool enabled) override; |
| 30 void SetStylusStateChangedCallback( |
| 31 const OnStylusStateChangedCallback& on_stylus_state_changed) override; |
| 32 bool ShouldAutoOpenPalette() override; |
| 28 void TakeScreenshot() override; | 33 void TakeScreenshot() override; |
| 29 void TakePartialScreenshot() override; | 34 void TakePartialScreenshot() override; |
| 30 | 35 |
| 36 // ui::InputDeviceObserver: |
| 37 void OnStylusStateChanged(ui::StylusState state) override; |
| 38 |
| 39 OnStylusStateChangedCallback on_stylus_state_changed_; |
| 40 |
| 31 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); | 41 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); |
| 32 }; | 42 }; |
| 33 | 43 |
| 34 } // namespace chromeos | 44 } // namespace chromeos |
| 35 | 45 |
| 36 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ | 46 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |