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

Unified Diff: media/remoting/interstitial.h

Issue 2643253003: Media Remoting Clean-up: Less-redundant naming, style consistency, etc. (Closed)
Patch Set: REBASE 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 | « media/remoting/fake_remoting_demuxer_stream_provider.cc ('k') | media/remoting/interstitial.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/interstitial.h
diff --git a/media/remoting/remoting_interstitial_ui.h b/media/remoting/interstitial.h
similarity index 64%
rename from media/remoting/remoting_interstitial_ui.h
rename to media/remoting/interstitial.h
index afc0e66c7304d4ea071dbe4d1c93569e90cdfdf6..de90df50bd4d6e7b92d7bdad6d82053c3b544c04 100644
--- a/media/remoting/remoting_interstitial_ui.h
+++ b/media/remoting/interstitial.h
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MEDIA_REMOTING_REMOTING_INTERSTITIAL_UI_H_
-#define MEDIA_REMOTING_REMOTING_INTERSTITIAL_UI_H_
+#ifndef MEDIA_REMOTING_INTERSTITIAL_H_
+#define MEDIA_REMOTING_INTERSTITIAL_H_
-#include "third_party/skia/include/core/SkBitmap.h"
+class SkBitmap;
namespace gfx {
class Size;
@@ -15,7 +15,9 @@ namespace media {
class VideoRendererSink;
-enum RemotingInterstitialType {
+namespace remoting {
+
+enum InterstitialType {
BETWEEN_SESSIONS, // Show background image only.
IN_SESSION, // Show MEDIA_REMOTING_CASTING_VIDEO_TEXT.
ENCRYPTED_MEDIA_FATAL_ERROR, // Show MEDIA_REMOTING_CAST_ERROR_TEXT.
@@ -27,11 +29,12 @@ enum RemotingInterstitialType {
// |background_image| will be centered in the canvas. When |background_image|
// is empty, interstitial will be drawn on a blank and black background. When
// |interstial_type| is BETWEEN_SESSIONS, show background image only.
-void PaintRemotingInterstitial(const SkBitmap& background_image,
- const gfx::Size& natural_size,
- RemotingInterstitialType interstitial_type,
- VideoRendererSink* video_renderer_sink);
+void PaintInterstitial(const SkBitmap& background_image,
+ const gfx::Size& natural_size,
+ InterstitialType interstitial_type,
+ VideoRendererSink* video_renderer_sink);
+} // namespace remoting
} // namespace media
-#endif // MEDIA_REMOTING_REMOTING_INTERSTITIAL_UI_H_
+#endif // MEDIA_REMOTING_INTERSTITIAL_H_
« no previous file with comments | « media/remoting/fake_remoting_demuxer_stream_provider.cc ('k') | media/remoting/interstitial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698