| 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 20 matching lines...) Expand all Loading... |
| 31 public ui::InputDeviceEventObserver, | 31 public ui::InputDeviceEventObserver, |
| 32 public ash::SessionStateObserver, | 32 public ash::SessionStateObserver, |
| 33 public content::NotificationObserver { | 33 public content::NotificationObserver { |
| 34 public: | 34 public: |
| 35 // Attempts to create a palette delegate. This will return null if the palette | 35 // Attempts to create a palette delegate. This will return null if the palette |
| 36 // feature is not enabled. | 36 // feature is not enabled. |
| 37 static std::unique_ptr<PaletteDelegateChromeOS> Create(); | 37 static std::unique_ptr<PaletteDelegateChromeOS> Create(); |
| 38 | 38 |
| 39 ~PaletteDelegateChromeOS() override; | 39 ~PaletteDelegateChromeOS() override; |
| 40 | 40 |
| 41 void OnLaserPointerEnabled() override; | 41 void SetLaserPointerState(bool enabled) override; |
| 42 void OnLaserPointerDisabled() override; | |
| 43 | 42 |
| 44 private: | 43 private: |
| 45 PaletteDelegateChromeOS(); | 44 PaletteDelegateChromeOS(); |
| 46 | 45 |
| 47 class ProxyScreenshotDelegate; | 46 class ProxyScreenshotDelegate; |
| 48 | 47 |
| 49 // ash::PaletteDelegate: | 48 // ash::PaletteDelegate: |
| 50 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( | 49 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( |
| 51 const EnableListener& on_state_changed) override; | 50 const EnableListener& on_state_changed) override; |
| 52 void CreateNote() override; | 51 void CreateNote() override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 content::NotificationRegistrar registrar_; | 88 content::NotificationRegistrar registrar_; |
| 90 | 89 |
| 91 base::WeakPtrFactory<PaletteDelegateChromeOS> weak_factory_; | 90 base::WeakPtrFactory<PaletteDelegateChromeOS> weak_factory_; |
| 92 | 91 |
| 93 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); | 92 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 } // namespace chromeos | 95 } // namespace chromeos |
| 97 | 96 |
| 98 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ | 97 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |