| 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_PALETTE_DELEGATE_H_ | 5 #ifndef ASH_PALETTE_DELEGATE_H_ |
| 6 #define ASH_PALETTE_DELEGATE_H_ | 6 #define ASH_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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual void TakeScreenshot() = 0; | 47 virtual void TakeScreenshot() = 0; |
| 48 | 48 |
| 49 // Take a screenshot of a user-selected region. |done| is called when the | 49 // Take a screenshot of a user-selected region. |done| is called when the |
| 50 // partial screenshot session has finished; a screenshot may or may not have | 50 // partial screenshot session has finished; a screenshot may or may not have |
| 51 // been taken. | 51 // been taken. |
| 52 virtual void TakePartialScreenshot(const base::Closure& done) = 0; | 52 virtual void TakePartialScreenshot(const base::Closure& done) = 0; |
| 53 | 53 |
| 54 // Cancels any active partial screenshot session. | 54 // Cancels any active partial screenshot session. |
| 55 virtual void CancelPartialScreenshot() = 0; | 55 virtual void CancelPartialScreenshot() = 0; |
| 56 | 56 |
| 57 // Returns true if the metalayer is available. |
| 58 virtual bool IsMetalayerSupported() = 0; |
| 59 |
| 60 // Shows the metalayer. |
| 61 // |closed| will be invoked when the metalayer is closed or |
| 62 // if the metalayer could not be shown. |
| 63 virtual void ShowMetalayer(const base::Closure& closed) = 0; |
| 64 |
| 65 // Hides the metalayer. |
| 66 virtual void HideMetalayer() = 0; |
| 67 |
| 57 private: | 68 private: |
| 58 DISALLOW_ASSIGN(PaletteDelegate); | 69 DISALLOW_ASSIGN(PaletteDelegate); |
| 59 }; | 70 }; |
| 60 | 71 |
| 61 } // namespace ash | 72 } // namespace ash |
| 62 | 73 |
| 63 #endif // ASH_PALETTE_DELEGATE_H_ | 74 #endif // ASH_PALETTE_DELEGATE_H_ |
| OLD | NEW |