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

Side by Side Diff: ash/cast_config_delegate.h

Issue 1145833003: Allow the cast tray to function as expected when the installed extension is missing API methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add bug to comment Created 5 years, 7 months 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/ash_strings.grd ('k') | ash/system/cast/tray_cast.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_CAST_CONFIG_DELEGATE_H_ 5 #ifndef ASH_CAST_CONFIG_DELEGATE_H_
6 #define ASH_CAST_CONFIG_DELEGATE_H_ 6 #define ASH_CAST_CONFIG_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Fetches the current set of receivers and their possible activities. This 76 // Fetches the current set of receivers and their possible activities. This
77 // method will lookup the current chromecast extension and query its current 77 // method will lookup the current chromecast extension and query its current
78 // state. The |callback| will be invoked when the receiver/activity data is 78 // state. The |callback| will be invoked when the receiver/activity data is
79 // available. 79 // available.
80 virtual void GetReceiversAndActivities( 80 virtual void GetReceiversAndActivities(
81 const ReceiversAndActivitesCallback& callback) = 0; 81 const ReceiversAndActivitesCallback& callback) = 0;
82 82
83 // Cast to a receiver specified by |receiver_id|. 83 // Cast to a receiver specified by |receiver_id|.
84 virtual void CastToReceiver(const std::string& receiver_id) = 0; 84 virtual void CastToReceiver(const std::string& receiver_id) = 0;
85 85
86 // Stop ongoing cast. The |activity_id| is the unique identifier associated 86 // Stop an ongoing cast.
87 // with the ongoing cast. Each receiver has only one possible activity 87 virtual void StopCasting() = 0;
88 // associated with it. The |activity_id| is available by invoking
89 // GetReceiversAndActivities(); if the receiver is currently casting, then the
90 // associated activity data will have an id. This id can be used to stop the
91 // cast in this method.
92 virtual void StopCasting(const std::string& activity_id) = 0;
93 88
94 // Opens Options page for cast. 89 // Opens Options page for cast.
95 virtual void LaunchCastOptions() = 0; 90 virtual void LaunchCastOptions() = 0;
96 91
97 private: 92 private:
98 DISALLOW_ASSIGN(CastConfigDelegate); 93 DISALLOW_ASSIGN(CastConfigDelegate);
99 }; 94 };
100 95
101 } // namespace ash 96 } // namespace ash
102 97
103 #endif // ASH_CAST_CONFIG_DELEGATE_H_ 98 #endif // ASH_CAST_CONFIG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/cast/tray_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698