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

Side by Side 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 unified diff | Download patch
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 // IPC messages for interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 9 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 10 #include "content/common/frame_message_enums.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 IPC_STRUCT_END() 305 IPC_STRUCT_END()
306 306
307 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 307 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
308 IPC_STRUCT_MEMBER(GURL, url) 308 IPC_STRUCT_MEMBER(GURL, url)
309 IPC_STRUCT_MEMBER(content::Referrer, referrer) 309 IPC_STRUCT_MEMBER(content::Referrer, referrer)
310 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 310 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
311 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 311 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
312 IPC_STRUCT_MEMBER(bool, user_gesture) 312 IPC_STRUCT_MEMBER(bool, user_gesture)
313 IPC_STRUCT_END() 313 IPC_STRUCT_END()
314 314
315 IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params)
316 // Background color of the text track.
317 IPC_STRUCT_MEMBER(std::string, text_track_background_color)
318 // Font family of the text track text.
nasko 2015/03/12 20:53:53 nit: Put empty lines between comments and the prec
319 IPC_STRUCT_MEMBER(std::string, text_track_font_family)
320 // Font style of the text track text.
321 IPC_STRUCT_MEMBER(std::string, text_track_font_style)
322 // Font variant of the text track text.
323 IPC_STRUCT_MEMBER(std::string, text_track_font_variant)
324 // Color of the text track text.
325 IPC_STRUCT_MEMBER(std::string, text_track_text_color)
326 // Text shadow (edge style) of the text track text.
327 IPC_STRUCT_MEMBER(std::string, text_track_text_shadow)
328 // Size of the text track text.
329 IPC_STRUCT_MEMBER(std::string, text_track_text_size)
330 IPC_STRUCT_END()
331
315 #if defined(OS_MACOSX) || defined(OS_ANDROID) 332 #if defined(OS_MACOSX) || defined(OS_ANDROID)
316 // This message is used for supporting popup menus on Mac OS X and Android using 333 // This message is used for supporting popup menus on Mac OS X and Android using
317 // native controls. See the FrameHostMsg_ShowPopup message. 334 // native controls. See the FrameHostMsg_ShowPopup message.
318 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) 335 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params)
319 // Position on the screen. 336 // Position on the screen.
320 IPC_STRUCT_MEMBER(gfx::Rect, bounds) 337 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
321 338
322 // The height of each item in the menu. 339 // The height of each item in the menu.
323 IPC_STRUCT_MEMBER(int, item_height) 340 IPC_STRUCT_MEMBER(int, item_height)
324 341
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 // Dispatch a load event in the iframe element containing this frame. 524 // Dispatch a load event in the iframe element containing this frame.
508 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) 525 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad)
509 526
510 // Notifies the frame that its parent has changed the frame's sandbox flags. 527 // Notifies the frame that its parent has changed the frame's sandbox flags.
511 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, content::SandboxFlags) 528 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, content::SandboxFlags)
512 529
513 // Update a proxy's window.name property. Used when the frame's name is 530 // Update a proxy's window.name property. Used when the frame's name is
514 // changed in another process. 531 // changed in another process.
515 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */) 532 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */)
516 533
534 // 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
535 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
536 FrameMsg_TextTrackSettings_Params /* params */)
537
517 #if defined(OS_ANDROID) 538 #if defined(OS_ANDROID)
518 539
519 // External popup menus. 540 // External popup menus.
520 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, 541 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems,
521 bool /* user canceled the popup */, 542 bool /* user canceled the popup */,
522 std::vector<int> /* selected indices */) 543 std::vector<int> /* selected indices */)
523 544
524 #elif defined(OS_MACOSX) 545 #elif defined(OS_MACOSX)
525 546
526 // External popup menus. 547 // External popup menus.
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) 890 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad)
870 891
871 #if defined(OS_MACOSX) || defined(OS_ANDROID) 892 #if defined(OS_MACOSX) || defined(OS_ANDROID)
872 893
873 // Message to show/hide a popup menu using native controls. 894 // Message to show/hide a popup menu using native controls.
874 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 895 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
875 FrameHostMsg_ShowPopup_Params) 896 FrameHostMsg_ShowPopup_Params)
876 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 897 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
877 898
878 #endif 899 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698