| 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 ASH_TEST_TRAY_CAST_TEST_API_H_ | 5 #ifndef ASH_TEST_TRAY_CAST_TEST_API_H_ |
| 6 #define ASH_TEST_TRAY_CAST_TEST_API_H_ | 6 #define ASH_TEST_TRAY_CAST_TEST_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // Start a new cast to the given receiver. | 35 // Start a new cast to the given receiver. |
| 36 void StartCast(const std::string& receiver_id); | 36 void StartCast(const std::string& receiver_id); |
| 37 void StopCast(); | 37 void StopCast(); |
| 38 | 38 |
| 39 // Exposed callback to update the casting state. The test code needs to call | 39 // Exposed callback to update the casting state. The test code needs to call |
| 40 // this function manually, as there is no actual casting going on. In a real | 40 // this function manually, as there is no actual casting going on. In a real |
| 41 // environment, this method is invoked by the casting system in Chrome. | 41 // environment, this method is invoked by the casting system in Chrome. |
| 42 void OnCastingSessionStartedOrStopped(bool is_casting); | 42 void OnCastingSessionStartedOrStopped(bool is_casting); |
| 43 | 43 |
| 44 // Release callback hooks in config delegate. They will get re-registered if | |
| 45 // the tray is used again. | |
| 46 void ReleaseConfigCallbacks(); | |
| 47 | |
| 48 private: | 44 private: |
| 49 bool IsViewDrawn(TrayCast::ChildViewId id) const; | 45 bool IsViewDrawn(TrayCast::ChildViewId id) const; |
| 50 | 46 |
| 51 // Not owned. | 47 // Not owned. |
| 52 TrayCast* tray_cast_; | 48 TrayCast* tray_cast_; |
| 53 | 49 |
| 54 DISALLOW_COPY_AND_ASSIGN(TrayCastTestAPI); | 50 DISALLOW_COPY_AND_ASSIGN(TrayCastTestAPI); |
| 55 }; | 51 }; |
| 56 | 52 |
| 57 } // namespace ash | 53 } // namespace ash |
| 58 | 54 |
| 59 #endif // ASH_TEST_TRAY_CAST_TEST_API_H_ | 55 #endif // ASH_TEST_TRAY_CAST_TEST_API_H_ |
| OLD | NEW |