Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: ash/test/tray_cast_test_api.h

Issue 2525563003: mash: Change CastConfigDelegate to a mojoified CastConfigClient. (Closed)
Patch Set: move dep to chromeos section Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/public/interfaces/cast_config.mojom ('k') | ash/test/tray_cast_test_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ash/public/interfaces/cast_config.mojom ('k') | ash/test/tray_cast_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698