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

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: Moved IPC to RenderFrame(Host) 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 eb7c02300b1d842fadd882fbacd8264181255f94..3bfb4b38a7049489dcd674caa0258136013187a4 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -312,6 +312,23 @@ 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.
nasko 2015/03/12 20:53:53 nit: Put empty lines between comments and the prec
+ 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.
@@ -514,6 +531,10 @@ IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, content::SandboxFlags)
// changed in another process.
IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */)
+// Send to the render view to set text track style settings.
nasko 2015/03/12 20:53:53 s/render view/RenderFrame/ Also, if it is only me
+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