OLD | NEW |
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 #include "content/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 3172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3183 routing_id_, frame_rect, scale_factor)); | 3183 routing_id_, frame_rect, scale_factor)); |
3184 } | 3184 } |
3185 | 3185 |
3186 blink::WebScreenOrientationClient* | 3186 blink::WebScreenOrientationClient* |
3187 RenderFrameImpl::webScreenOrientationClient() { | 3187 RenderFrameImpl::webScreenOrientationClient() { |
3188 if (!screen_orientation_dispatcher_) | 3188 if (!screen_orientation_dispatcher_) |
3189 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); | 3189 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); |
3190 return screen_orientation_dispatcher_; | 3190 return screen_orientation_dispatcher_; |
3191 } | 3191 } |
3192 | 3192 |
3193 void RenderFrameImpl::postAccessibilityEvent(const blink::WebAXObject& obj, | |
3194 blink::WebAXEvent event) { | |
3195 HandleWebAccessibilityEvent(obj, event); | |
3196 } | |
3197 | |
3198 void RenderFrameImpl::DidPlay(blink::WebMediaPlayer* player) { | 3193 void RenderFrameImpl::DidPlay(blink::WebMediaPlayer* player) { |
3199 Send(new FrameHostMsg_MediaPlayingNotification( | 3194 Send(new FrameHostMsg_MediaPlayingNotification( |
3200 routing_id_, reinterpret_cast<int64>(player), player->hasVideo(), | 3195 routing_id_, reinterpret_cast<int64>(player), player->hasVideo(), |
3201 player->hasAudio())); | 3196 player->hasAudio())); |
3202 } | 3197 } |
3203 | 3198 |
3204 void RenderFrameImpl::DidPause(blink::WebMediaPlayer* player) { | 3199 void RenderFrameImpl::DidPause(blink::WebMediaPlayer* player) { |
3205 Send(new FrameHostMsg_MediaPausedNotification( | 3200 Send(new FrameHostMsg_MediaPausedNotification( |
3206 routing_id_, reinterpret_cast<int64>(player))); | 3201 routing_id_, reinterpret_cast<int64>(player))); |
3207 } | 3202 } |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3888 | 3883 |
3889 #if defined(ENABLE_BROWSER_CDMS) | 3884 #if defined(ENABLE_BROWSER_CDMS) |
3890 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 3885 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
3891 if (!cdm_manager_) | 3886 if (!cdm_manager_) |
3892 cdm_manager_ = new RendererCdmManager(this); | 3887 cdm_manager_ = new RendererCdmManager(this); |
3893 return cdm_manager_; | 3888 return cdm_manager_; |
3894 } | 3889 } |
3895 #endif // defined(ENABLE_BROWSER_CDMS) | 3890 #endif // defined(ENABLE_BROWSER_CDMS) |
3896 | 3891 |
3897 } // namespace content | 3892 } // namespace content |
OLD | NEW |