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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.h

Issue 1895233003: Bug Fix: Resize Event Trigger (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unittest Created 4 years, 8 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 | « no previous file | content/renderer/media/webmediaplayer_ms.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 blink::WebTimeRanges seekable() const override; 103 blink::WebTimeRanges seekable() const override;
104 104
105 // Methods for painting. 105 // Methods for painting.
106 void paint(blink::WebCanvas* canvas, 106 void paint(blink::WebCanvas* canvas,
107 const blink::WebRect& rect, 107 const blink::WebRect& rect,
108 unsigned char alpha, 108 unsigned char alpha,
109 SkXfermode::Mode mode) override; 109 SkXfermode::Mode mode) override;
110 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); 110 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer();
111 void ResetCanvasCache(); 111 void ResetCanvasCache();
112 112
113 // Methods to trigger resize event.
114 void TriggerResize();
115
113 // True if the loaded media has a playable video/audio track. 116 // True if the loaded media has a playable video/audio track.
114 bool hasVideo() const override; 117 bool hasVideo() const override;
115 bool hasAudio() const override; 118 bool hasAudio() const override;
116 119
117 // Dimensions of the video. 120 // Dimensions of the video.
118 blink::WebSize naturalSize() const override; 121 blink::WebSize naturalSize() const override;
119 122
120 // Getters of playback state. 123 // Getters of playback state.
121 bool paused() const override; 124 bool paused() const override;
122 bool seeking() const override; 125 bool seeking() const override;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // True if playback should be started upon the next call to OnShown(). Only 235 // True if playback should be started upon the next call to OnShown(). Only
233 // used on Android. 236 // used on Android.
234 bool should_play_upon_shown_; 237 bool should_play_upon_shown_;
235 238
236 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 239 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
237 }; 240 };
238 241
239 } // namespace content 242 } // namespace content
240 243
241 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 244 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698