OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_COMMON_PALETTE_DELEGATE_H_ | 5 #ifndef ASH_COMMON_PALETTE_DELEGATE_H_ |
6 #define ASH_COMMON_PALETTE_DELEGATE_H_ | 6 #define ASH_COMMON_PALETTE_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/callback_list.h" | 10 #include "base/callback_list.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual void SetPartialMagnifierState(bool enabled) = 0; | 40 virtual void SetPartialMagnifierState(bool enabled) = 0; |
41 | 41 |
42 // Set callback that is run when a stylus is inserted or removed. | 42 // Set callback that is run when a stylus is inserted or removed. |
43 virtual void SetStylusStateChangedCallback( | 43 virtual void SetStylusStateChangedCallback( |
44 const OnStylusStateChangedCallback& on_stylus_state_changed) = 0; | 44 const OnStylusStateChangedCallback& on_stylus_state_changed) = 0; |
45 | 45 |
46 // Returns true if the palette should be automatically opened on an eject | 46 // Returns true if the palette should be automatically opened on an eject |
47 // event. | 47 // event. |
48 virtual bool ShouldAutoOpenPalette() = 0; | 48 virtual bool ShouldAutoOpenPalette() = 0; |
49 | 49 |
| 50 // Returns true if the palette should be displayed. This is the one-shot |
| 51 // equivalent to AddPaletteEnableListener. |
| 52 virtual bool ShouldShowPalette() = 0; |
| 53 |
50 // Take a screenshot of the entire window. | 54 // Take a screenshot of the entire window. |
51 virtual void TakeScreenshot() = 0; | 55 virtual void TakeScreenshot() = 0; |
52 | 56 |
53 // Take a screenshot of a user-selected region. | 57 // Take a screenshot of a user-selected region. |
54 virtual void TakePartialScreenshot() = 0; | 58 virtual void TakePartialScreenshot() = 0; |
55 | 59 |
56 private: | 60 private: |
57 DISALLOW_ASSIGN(PaletteDelegate); | 61 DISALLOW_ASSIGN(PaletteDelegate); |
58 }; | 62 }; |
59 | 63 |
60 } // namespace ash | 64 } // namespace ash |
61 | 65 |
62 #endif // ASH_COMMON_PALETTE_DELEGATE_H_ | 66 #endif // ASH_COMMON_PALETTE_DELEGATE_H_ |
OLD | NEW |