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

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: Fix CQ Issues Created 5 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
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 IPC_STRUCT_END() 268 IPC_STRUCT_END()
269 269
270 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 270 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
271 IPC_STRUCT_MEMBER(GURL, url) 271 IPC_STRUCT_MEMBER(GURL, url)
272 IPC_STRUCT_MEMBER(content::Referrer, referrer) 272 IPC_STRUCT_MEMBER(content::Referrer, referrer)
273 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 273 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
274 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 274 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
275 IPC_STRUCT_MEMBER(bool, user_gesture) 275 IPC_STRUCT_MEMBER(bool, user_gesture)
276 IPC_STRUCT_END() 276 IPC_STRUCT_END()
277 277
278 IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params)
279 // Background color of the text track.
280 IPC_STRUCT_MEMBER(std::string, text_track_background_color)
281
282 // Font family of the text track text.
283 IPC_STRUCT_MEMBER(std::string, text_track_font_family)
284
285 // Font style of the text track text.
286 IPC_STRUCT_MEMBER(std::string, text_track_font_style)
287
288 // Font variant of the text track text.
289 IPC_STRUCT_MEMBER(std::string, text_track_font_variant)
290
291 // Color of the text track text.
292 IPC_STRUCT_MEMBER(std::string, text_track_text_color)
293
294 // Text shadow (edge style) of the text track text.
295 IPC_STRUCT_MEMBER(std::string, text_track_text_shadow)
296
297 // Size of the text track text.
298 IPC_STRUCT_MEMBER(std::string, text_track_text_size)
299 IPC_STRUCT_END()
300
278 #if defined(OS_MACOSX) || defined(OS_ANDROID) 301 #if defined(OS_MACOSX) || defined(OS_ANDROID)
279 // This message is used for supporting popup menus on Mac OS X and Android using 302 // This message is used for supporting popup menus on Mac OS X and Android using
280 // native controls. See the FrameHostMsg_ShowPopup message. 303 // native controls. See the FrameHostMsg_ShowPopup message.
281 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) 304 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params)
282 // Position on the screen. 305 // Position on the screen.
283 IPC_STRUCT_MEMBER(gfx::Rect, bounds) 306 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
284 307
285 // The height of each item in the menu. 308 // The height of each item in the menu.
286 IPC_STRUCT_MEMBER(int, item_height) 309 IPC_STRUCT_MEMBER(int, item_height)
287 310
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // Dispatch a load event in the iframe element containing this frame. 496 // Dispatch a load event in the iframe element containing this frame.
474 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) 497 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad)
475 498
476 // Notifies the frame that its parent has changed the frame's sandbox flags. 499 // Notifies the frame that its parent has changed the frame's sandbox flags.
477 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, content::SandboxFlags) 500 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, content::SandboxFlags)
478 501
479 // Update a proxy's window.name property. Used when the frame's name is 502 // Update a proxy's window.name property. Used when the frame's name is
480 // changed in another process. 503 // changed in another process.
481 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */) 504 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */)
482 505
506 // Send to the RenderFrame to set text track style settings.
507 // Sent for top-level frames.
508 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
509 FrameMsg_TextTrackSettings_Params /* params */)
510
483 #if defined(OS_ANDROID) 511 #if defined(OS_ANDROID)
484 512
485 // External popup menus. 513 // External popup menus.
486 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, 514 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems,
487 bool /* user canceled the popup */, 515 bool /* user canceled the popup */,
488 std::vector<int> /* selected indices */) 516 std::vector<int> /* selected indices */)
489 517
490 #elif defined(OS_MACOSX) 518 #elif defined(OS_MACOSX)
491 519
492 // External popup menus. 520 // External popup menus.
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) 854 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad)
827 855
828 #if defined(OS_MACOSX) || defined(OS_ANDROID) 856 #if defined(OS_MACOSX) || defined(OS_ANDROID)
829 857
830 // Message to show/hide a popup menu using native controls. 858 // Message to show/hide a popup menu using native controls.
831 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 859 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
832 FrameHostMsg_ShowPopup_Params) 860 FrameHostMsg_ShowPopup_Params)
833 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 861 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
834 862
835 #endif 863 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698