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

Unified Diff: examples/media_test/media_test.cc

Issue 1844093002: Motown: media_test minor fixes and cleanup. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 | « examples/media_test/media_test.h ('k') | examples/media_test/media_test_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/media_test/media_test.cc
diff --git a/examples/media_test/media_test.cc b/examples/media_test/media_test.cc
index 0693a3feb95c4bffc212b6684317cebc22290c79..d857ae264a84d4cee9d26fb0f4cb9a0679e696d6 100644
--- a/examples/media_test/media_test.cc
+++ b/examples/media_test/media_test.cc
@@ -31,26 +31,6 @@ MediaTest::MediaTest(mojo::ApplicationImpl* app,
MediaTest::~MediaTest() {}
-void MediaTest::RegisterUpdateCallback(const UpdateCallback& callback) {
- update_callback_ = callback;
-}
-
-void MediaTest::Play() {
- media_player_->Play();
-}
-
-void MediaTest::Pause() {
- media_player_->Pause();
-}
-
-void MediaTest::Seek(int64_t position_ns) {
- media_player_->Seek(position_ns);
-}
-
-MediaState MediaTest::state() const {
- return state_;
-}
-
int64_t MediaTest::position_ns() const {
// Apply the transform to the current time.
int64_t position;
@@ -74,6 +54,7 @@ void MediaTest::HandleStatusUpdates(uint64_t version,
MediaPlayerStatusPtr status) {
if (status) {
// Process status received from the player.
+ previous_state_ = state_;
state_ = status->state;
// Create a linear transform that translates local time to presentation
« no previous file with comments | « examples/media_test/media_test.h ('k') | examples/media_test/media_test_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698