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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 2558933002: Add more fine-grained accessibility modes. (Closed)
Patch Set: Reformat enums as uppercase Created 4 years 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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // Checks if we have permission to access the microphone or camera. Note that 144 // Checks if we have permission to access the microphone or camera. Note that
145 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE 145 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE
146 // or MEDIA_DEVICE_VIDEO_CAPTURE. 146 // or MEDIA_DEVICE_VIDEO_CAPTURE.
147 virtual bool CheckMediaAccessPermission(const GURL& security_origin, 147 virtual bool CheckMediaAccessPermission(const GURL& security_origin,
148 MediaStreamType type); 148 MediaStreamType type);
149 149
150 // Get the accessibility mode for the WebContents that owns this frame. 150 // Get the accessibility mode for the WebContents that owns this frame.
151 virtual AccessibilityMode GetAccessibilityMode() const; 151 virtual AccessibilityMode GetAccessibilityMode() const;
152 152
153 // Forward accessibility messages to other potential listeners like 153 // Called when accessibility events or location changes are received
154 // the automation extension API. 154 // from a render frame, when the accessibility mode has the
155 // ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS flag set.
155 virtual void AccessibilityEventReceived( 156 virtual void AccessibilityEventReceived(
156 const std::vector<AXEventNotificationDetails>& details) {} 157 const std::vector<AXEventNotificationDetails>& details) {}
157 virtual void AccessibilityLocationChangesReceived( 158 virtual void AccessibilityLocationChangesReceived(
158 const std::vector<AXLocationChangeNotificationDetails>& details) {} 159 const std::vector<AXLocationChangeNotificationDetails>& details) {}
159 160
160 // Find a guest RenderFrameHost by its parent |render_frame_host| and 161 // Find a guest RenderFrameHost by its parent |render_frame_host| and
161 // |browser_plugin_instance_id|. 162 // |browser_plugin_instance_id|.
162 virtual RenderFrameHost* GetGuestByInstanceID( 163 virtual RenderFrameHost* GetGuestByInstanceID(
163 RenderFrameHost* render_frame_host, 164 RenderFrameHost* render_frame_host,
164 int browser_plugin_instance_id); 165 int browser_plugin_instance_id);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 212 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
212 const GURL& url); 213 const GURL& url);
213 214
214 protected: 215 protected:
215 virtual ~RenderFrameHostDelegate() {} 216 virtual ~RenderFrameHostDelegate() {}
216 }; 217 };
217 218
218 } // namespace content 219 } // namespace content
219 220
220 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 221 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698