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

Unified Diff: content/common/frame_messages.h

Issue 1002473003: Expose text track settings in Content and implement for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CQ Issues Created 5 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
Index: content/common/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index 72eb2f452eb456366ec24113989a08dc27111bf1..8a4fb0c3d2a45029db222d5bfa051d74aeb36b09 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -275,6 +275,29 @@ IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
IPC_STRUCT_MEMBER(bool, user_gesture)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params)
+ // Background color of the text track.
+ IPC_STRUCT_MEMBER(std::string, text_track_background_color)
+
+ // Font family of the text track text.
+ IPC_STRUCT_MEMBER(std::string, text_track_font_family)
+
+ // Font style of the text track text.
+ IPC_STRUCT_MEMBER(std::string, text_track_font_style)
+
+ // Font variant of the text track text.
+ IPC_STRUCT_MEMBER(std::string, text_track_font_variant)
+
+ // Color of the text track text.
+ IPC_STRUCT_MEMBER(std::string, text_track_text_color)
+
+ // Text shadow (edge style) of the text track text.
+ IPC_STRUCT_MEMBER(std::string, text_track_text_shadow)
+
+ // Size of the text track text.
+ IPC_STRUCT_MEMBER(std::string, text_track_text_size)
+IPC_STRUCT_END()
+
#if defined(OS_MACOSX) || defined(OS_ANDROID)
// This message is used for supporting popup menus on Mac OS X and Android using
// native controls. See the FrameHostMsg_ShowPopup message.
@@ -480,6 +503,11 @@ IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, content::SandboxFlags)
// changed in another process.
IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */)
+// Send to the RenderFrame to set text track style settings.
+// Sent for top-level frames.
+IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
+ FrameMsg_TextTrackSettings_Params /* params */)
+
#if defined(OS_ANDROID)
// External popup menus.

Powered by Google App Engine
This is Rietveld 408576698