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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 public ui::InputDeviceEventObserver, | 30 public ui::InputDeviceEventObserver, |
31 public ash::SessionStateObserver, | 31 public ash::SessionStateObserver, |
32 public content::NotificationObserver { | 32 public content::NotificationObserver { |
33 public: | 33 public: |
34 // Attempts to create a palette delegate. This will return null if the palette | 34 // Attempts to create a palette delegate. This will return null if the palette |
35 // feature is not enabled. | 35 // feature is not enabled. |
36 static std::unique_ptr<PaletteDelegateChromeOS> Create(); | 36 static std::unique_ptr<PaletteDelegateChromeOS> Create(); |
37 | 37 |
38 ~PaletteDelegateChromeOS() override; | 38 ~PaletteDelegateChromeOS() override; |
39 | 39 |
| 40 void OnLaserPointerEnabled() override; |
| 41 void OnLaserPointerDisabled() override; |
| 42 |
40 private: | 43 private: |
41 PaletteDelegateChromeOS(); | 44 PaletteDelegateChromeOS(); |
42 | 45 |
43 // ash::PaletteDelegate: | 46 // ash::PaletteDelegate: |
44 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( | 47 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( |
45 const EnableListener& on_state_changed) override; | 48 const EnableListener& on_state_changed) override; |
46 void CreateNote() override; | 49 void CreateNote() override; |
47 bool HasNoteApp() override; | 50 bool HasNoteApp() override; |
48 void SetPartialMagnifierState(bool enabled) override; | 51 void SetPartialMagnifierState(bool enabled) override; |
49 void SetStylusStateChangedCallback( | 52 void SetStylusStateChangedCallback( |
(...skipping 27 matching lines...) Expand all Loading... |
77 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; | 80 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; |
78 std::unique_ptr<ash::ScopedSessionStateObserver> session_state_observer_; | 81 std::unique_ptr<ash::ScopedSessionStateObserver> session_state_observer_; |
79 content::NotificationRegistrar registrar_; | 82 content::NotificationRegistrar registrar_; |
80 | 83 |
81 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); | 84 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); |
82 }; | 85 }; |
83 | 86 |
84 } // namespace chromeos | 87 } // namespace chromeos |
85 | 88 |
86 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ | 89 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ |
OLD | NEW |