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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.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 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 #endif 33 #endif
34 34
35 class GURL; 35 class GURL;
36 struct AccessibilityHostMsg_EventParams; 36 struct AccessibilityHostMsg_EventParams;
37 struct AccessibilityHostMsg_FindInPageResultParams; 37 struct AccessibilityHostMsg_FindInPageResultParams;
38 struct AccessibilityHostMsg_LocationChangeParams; 38 struct AccessibilityHostMsg_LocationChangeParams;
39 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 39 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
40 struct FrameHostMsg_OpenURL_Params; 40 struct FrameHostMsg_OpenURL_Params;
41 struct FrameHostMsg_BeginNavigation_Params; 41 struct FrameHostMsg_BeginNavigation_Params;
42 struct FrameMsg_Navigate_Params; 42 struct FrameMsg_Navigate_Params;
43 struct FrameMsg_TextTrackSettings_Params;
43 #if defined(OS_MACOSX) || defined(OS_ANDROID) 44 #if defined(OS_MACOSX) || defined(OS_ANDROID)
44 struct FrameHostMsg_ShowPopup_Params; 45 struct FrameHostMsg_ShowPopup_Params;
45 #endif 46 #endif
46 47
47 namespace base { 48 namespace base {
48 class FilePath; 49 class FilePath;
49 class ListValue; 50 class ListValue;
50 } 51 }
51 52
52 namespace content { 53 namespace content {
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 // Send a message to the renderer process to change the accessibility mode. 371 // Send a message to the renderer process to change the accessibility mode.
371 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); 372 void SetAccessibilityMode(AccessibilityMode AccessibilityMode);
372 373
373 // Turn on accessibility testing. The given callback will be run 374 // Turn on accessibility testing. The given callback will be run
374 // every time an accessibility notification is received from the 375 // every time an accessibility notification is received from the
375 // renderer process, and the accessibility tree it sent can be 376 // renderer process, and the accessibility tree it sent can be
376 // retrieved using GetAXTreeForTesting(). 377 // retrieved using GetAXTreeForTesting().
377 void SetAccessibilityCallbackForTesting( 378 void SetAccessibilityCallbackForTesting(
378 const base::Callback<void(ui::AXEvent, int)>& callback); 379 const base::Callback<void(ui::AXEvent, int)>& callback);
379 380
381 // Send a message to the render process to change text track style settings.
382 void SetTextTrackSettings(const FrameMsg_TextTrackSettings_Params& params);
383
380 // Returns a snapshot of the accessibility tree received from the 384 // Returns a snapshot of the accessibility tree received from the
381 // renderer as of the last time an accessibility notification was 385 // renderer as of the last time an accessibility notification was
382 // received. 386 // received.
383 const ui::AXTree* GetAXTreeForTesting(); 387 const ui::AXTree* GetAXTreeForTesting();
384 388
385 // Access the BrowserAccessibilityManager if it already exists. 389 // Access the BrowserAccessibilityManager if it already exists.
386 BrowserAccessibilityManager* browser_accessibility_manager() const { 390 BrowserAccessibilityManager* browser_accessibility_manager() const {
387 return browser_accessibility_manager_.get(); 391 return browser_accessibility_manager_.get();
388 } 392 }
389 393
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 712
709 // NOTE: This must be the last member. 713 // NOTE: This must be the last member.
710 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 714 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
711 715
712 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 716 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
713 }; 717 };
714 718
715 } // namespace content 719 } // namespace content
716 720
717 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 721 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698