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

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: 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 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 21 matching lines...) Expand all
32 #if defined(OS_ANDROID) 32 #if defined(OS_ANDROID)
33 #include "content/browser/mojo/service_registry_android.h" 33 #include "content/browser/mojo/service_registry_android.h"
34 #endif 34 #endif
35 35
36 class GURL; 36 class GURL;
37 struct AccessibilityHostMsg_EventParams; 37 struct AccessibilityHostMsg_EventParams;
38 struct AccessibilityHostMsg_FindInPageResultParams; 38 struct AccessibilityHostMsg_FindInPageResultParams;
39 struct AccessibilityHostMsg_LocationChangeParams; 39 struct AccessibilityHostMsg_LocationChangeParams;
40 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 40 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
41 struct FrameHostMsg_OpenURL_Params; 41 struct FrameHostMsg_OpenURL_Params;
42 struct FrameMsg_TextTrackSettings_Params;
42 #if defined(OS_MACOSX) || defined(OS_ANDROID) 43 #if defined(OS_MACOSX) || defined(OS_ANDROID)
43 struct FrameHostMsg_ShowPopup_Params; 44 struct FrameHostMsg_ShowPopup_Params;
44 #endif 45 #endif
45 46
46 namespace base { 47 namespace base {
47 class FilePath; 48 class FilePath;
48 class ListValue; 49 class ListValue;
49 } 50 }
50 51
51 namespace content { 52 namespace content {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // Send a message to the renderer process to change the accessibility mode. 366 // Send a message to the renderer process to change the accessibility mode.
366 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); 367 void SetAccessibilityMode(AccessibilityMode AccessibilityMode);
367 368
368 // Turn on accessibility testing. The given callback will be run 369 // Turn on accessibility testing. The given callback will be run
369 // every time an accessibility notification is received from the 370 // every time an accessibility notification is received from the
370 // renderer process, and the accessibility tree it sent can be 371 // renderer process, and the accessibility tree it sent can be
371 // retrieved using GetAXTreeForTesting(). 372 // retrieved using GetAXTreeForTesting().
372 void SetAccessibilityCallbackForTesting( 373 void SetAccessibilityCallbackForTesting(
373 const base::Callback<void(ui::AXEvent, int)>& callback); 374 const base::Callback<void(ui::AXEvent, int)>& callback);
374 375
376 // Send a message to the render process to change text track style settings.
377 void SetTextTrackSettings(const FrameMsg_TextTrackSettings_Params& params);
378
375 // Returns a snapshot of the accessibility tree received from the 379 // Returns a snapshot of the accessibility tree received from the
376 // renderer as of the last time an accessibility notification was 380 // renderer as of the last time an accessibility notification was
377 // received. 381 // received.
378 const ui::AXTree* GetAXTreeForTesting(); 382 const ui::AXTree* GetAXTreeForTesting();
379 383
380 // Access the BrowserAccessibilityManager if it already exists. 384 // Access the BrowserAccessibilityManager if it already exists.
381 BrowserAccessibilityManager* browser_accessibility_manager() const { 385 BrowserAccessibilityManager* browser_accessibility_manager() const {
382 return browser_accessibility_manager_.get(); 386 return browser_accessibility_manager_.get();
383 } 387 }
384 388
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 698
695 // NOTE: This must be the last member. 699 // NOTE: This must be the last member.
696 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 700 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
697 701
698 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 702 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
699 }; 703 };
700 704
701 } // namespace content 705 } // namespace content
702 706
703 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 707 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698