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

Unified Diff: examples/media_test/media_test.h

Issue 2015643002: Add (optional) options to Run[Main]Application(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 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
Index: examples/media_test/media_test.h
diff --git a/examples/media_test/media_test.h b/examples/media_test/media_test.h
index fc171614c8a32a33f6139e7d751e5a90fdc8c1a6..81b2c3e2558c4cbb9c479a45df640bbc42c44b4b 100644
--- a/examples/media_test/media_test.h
+++ b/examples/media_test/media_test.h
@@ -6,13 +6,15 @@
#define EXAMPLES_MEDIA_TEST_MEDIA_TEST_H_
#include "base/macros.h"
-#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/services/media/common/cpp/timeline_function.h"
#include "mojo/services/media/common/interfaces/rate_control.mojom.h"
#include "mojo/services/media/control/interfaces/media_factory.mojom.h"
#include "mojo/services/media/control/interfaces/media_player.mojom.h"
namespace mojo {
+
+class Shell;
+
namespace media {
namespace examples {
@@ -23,7 +25,7 @@ class MediaTest {
using UpdateCallback = std::function<void()>;
- static std::unique_ptr<MediaTest> Create(mojo::ApplicationImpl* app,
+ static std::unique_ptr<MediaTest> Create(mojo::Shell* shell,
const std::string& input_file_name);
~MediaTest();
@@ -55,7 +57,7 @@ class MediaTest {
const MediaMetadataPtr& metadata() const;
private:
- MediaTest(mojo::ApplicationImpl* app, const std::string& input_file_name);
+ MediaTest(mojo::Shell* shell, const std::string& input_file_name);
// Handles a status update from the player. When called with the default
// argument values, initiates status updates.

Powered by Google App Engine
This is Rietveld 408576698