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

Unified Diff: chrome/browser/ui/ash/cast_config_delegate_chromeos.h

Issue 1115083002: Add the supporting code for the cast system tray integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add reference to bug 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/system_tray_delegate.cc ('k') | chrome/browser/ui/ash/cast_config_delegate_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/cast_config_delegate_chromeos.h
diff --git a/chrome/browser/ui/ash/cast_config_delegate_chromeos.h b/chrome/browser/ui/ash/cast_config_delegate_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..f0c1b58f46fbe0a905d6a46eda9255e4e5e2521c
--- /dev/null
+++ b/chrome/browser/ui/ash/cast_config_delegate_chromeos.h
@@ -0,0 +1,38 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_
+#define CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_
+
+#include <string>
+
+#include "ash/cast_config_delegate.h"
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/values.h"
+
+namespace chromeos {
+
+// A class which allows the ash tray to communicate with the cast extension.
+class CastConfigDelegateChromeos : public ash::CastConfigDelegate {
+ public:
+ CastConfigDelegateChromeos();
+
+ private:
+ ~CastConfigDelegateChromeos() override;
+
+ // CastConfigDelegate:
+ bool HasCastExtension() const override;
+ void GetReceiversAndActivities(
+ const ReceiversAndActivitesCallback& callback) override;
+ void CastToReceiver(const std::string& receiver_id) override;
+ void StopCasting(const std::string& activity_id) override;
+ void LaunchCastOptions() override;
+
+ DISALLOW_COPY_AND_ASSIGN(CastConfigDelegateChromeos);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_
« no previous file with comments | « ash/system/tray/system_tray_delegate.cc ('k') | chrome/browser/ui/ash/cast_config_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698