| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SCREENSHOT_DELEGATE_H_ | 5 #ifndef ASH_SCREENSHOT_DELEGATE_H_ |
| 6 #define ASH_SCREENSHOT_DELEGATE_H_ | 6 #define ASH_SCREENSHOT_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace aura { | 8 namespace aura { |
| 9 class Window; | 9 class Window; |
| 10 } // namespace aura | 10 } // namespace aura |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // The actual task of taking a screenshot for the given window. | 23 // The actual task of taking a screenshot for the given window. |
| 24 // This method is called when the user wants to take a screenshot | 24 // This method is called when the user wants to take a screenshot |
| 25 // manually. | 25 // manually. |
| 26 virtual void HandleTakeScreenshot(aura::Window* window) = 0; | 26 virtual void HandleTakeScreenshot(aura::Window* window) = 0; |
| 27 | 27 |
| 28 // The actual task of taking a partial screenshot for the given | 28 // The actual task of taking a partial screenshot for the given |
| 29 // window. | 29 // window. |
| 30 virtual void HandleTakePartialScreenshot( | 30 virtual void HandleTakePartialScreenshot( |
| 31 aura::Window* window, const gfx::Rect& rect) = 0; | 31 aura::Window* window, const gfx::Rect& rect) = 0; |
| 32 |
| 33 // Returns true if the system is ready to take screenshot. |
| 34 virtual bool CanTakeScreenshot() = 0; |
| 32 }; | 35 }; |
| 33 } // namespace ash | 36 } // namespace ash |
| 34 | 37 |
| 35 #endif // ASH_SCREENSHOT_DELEGATE_H_ | 38 #endif // ASH_SCREENSHOT_DELEGATE_H_ |
| OLD | NEW |