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 26 matching lines...) Expand all Loading... |
37 private: | 37 private: |
38 // ash::PaletteDelegate: | 38 // ash::PaletteDelegate: |
39 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( | 39 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( |
40 const EnableListener& on_state_changed) override; | 40 const EnableListener& on_state_changed) override; |
41 void CreateNote() override; | 41 void CreateNote() override; |
42 bool HasNoteApp() override; | 42 bool HasNoteApp() override; |
43 void SetPartialMagnifierState(bool enabled) override; | 43 void SetPartialMagnifierState(bool enabled) override; |
44 void SetStylusStateChangedCallback( | 44 void SetStylusStateChangedCallback( |
45 const OnStylusStateChangedCallback& on_stylus_state_changed) override; | 45 const OnStylusStateChangedCallback& on_stylus_state_changed) override; |
46 bool ShouldAutoOpenPalette() override; | 46 bool ShouldAutoOpenPalette() override; |
| 47 bool ShouldShowPalette() override; |
47 void TakeScreenshot() override; | 48 void TakeScreenshot() override; |
48 void TakePartialScreenshot() override; | 49 void TakePartialScreenshot() override; |
49 | 50 |
50 // ash::SessionStateObserver: | 51 // ash::SessionStateObserver: |
51 void ActiveUserChanged(const AccountId& account_id) override; | 52 void ActiveUserChanged(const AccountId& account_id) override; |
52 | 53 |
53 // content::NotificationObserver: | 54 // content::NotificationObserver: |
54 void Observe(int type, | 55 void Observe(int type, |
55 const content::NotificationSource& source, | 56 const content::NotificationSource& source, |
56 const content::NotificationDetails& details) override; | 57 const content::NotificationDetails& details) override; |
(...skipping 14 matching lines...) Expand all Loading... |
71 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; | 72 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; |
72 std::unique_ptr<ash::ScopedSessionStateObserver> session_state_observer_; | 73 std::unique_ptr<ash::ScopedSessionStateObserver> session_state_observer_; |
73 content::NotificationRegistrar registrar_; | 74 content::NotificationRegistrar registrar_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); | 76 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace chromeos | 79 } // namespace chromeos |
79 | 80 |
80 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ | 81 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ |
OLD | NEW |