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

Unified Diff: chromecast/browser/service/cast_service_simple.h

Issue 2570623003: [Chromecast] Turn CastContentWindow into an abstract interface. (Closed)
Patch Set: Fix browser test Created 3 years, 11 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 | « chromecast/browser/cast_content_window_linux.cc ('k') | chromecast/browser/service/cast_service_simple.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/service/cast_service_simple.h
diff --git a/chromecast/browser/service/cast_service_simple.h b/chromecast/browser/service/cast_service_simple.h
index f40cc867b2a96d9d3985a29695d9b231f40b0162..636fbeccb4dec584de116dc3e97bbab1d1b42f22 100644
--- a/chromecast/browser/service/cast_service_simple.h
+++ b/chromecast/browser/service/cast_service_simple.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/macros.h"
+#include "chromecast/browser/cast_content_window.h"
#include "chromecast/service/cast_service.h"
#include "url/gurl.h"
@@ -17,9 +18,9 @@ class WebContents;
namespace chromecast {
namespace shell {
-class CastContentWindow;
-class CastServiceSimple : public CastService {
+class CastServiceSimple : public CastService,
+ public CastContentWindow::Delegate {
public:
CastServiceSimple(content::BrowserContext* browser_context,
PrefService* pref_service);
@@ -32,6 +33,10 @@ class CastServiceSimple : public CastService {
void StartInternal() override;
void StopInternal() override;
+ // CastContentWindow::Delegate implementation:
+ void OnWindowDestroyed() override;
+ void OnKeyEvent(const ui::KeyEvent& key_event) override;
+
private:
std::unique_ptr<CastContentWindow> window_;
std::unique_ptr<content::WebContents> web_contents_;
« no previous file with comments | « chromecast/browser/cast_content_window_linux.cc ('k') | chromecast/browser/service/cast_service_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698