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

Side by Side Diff: mojo/services/html_viewer/html_document_view.cc

Issue 600233002: Update mojo for changes to createMediaPlayer() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « mojo/services/html_viewer/html_document_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/services/html_viewer/html_document_view.h" 5 #include "mojo/services/html_viewer/html_document_view.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return web_layer_tree_view_impl_.get(); 173 return web_layer_tree_view_impl_.get();
174 } 174 }
175 175
176 blink::WebMediaPlayer* HTMLDocumentView::createMediaPlayer( 176 blink::WebMediaPlayer* HTMLDocumentView::createMediaPlayer(
177 blink::WebLocalFrame* frame, 177 blink::WebLocalFrame* frame,
178 const blink::WebURL& url, 178 const blink::WebURL& url,
179 blink::WebMediaPlayerClient* client) { 179 blink::WebMediaPlayerClient* client) {
180 return web_media_player_factory_->CreateMediaPlayer(frame, url, client); 180 return web_media_player_factory_->CreateMediaPlayer(frame, url, client);
181 } 181 }
182 182
183 blink::WebMediaPlayer* HTMLDocumentView::createMediaPlayer(
184 blink::WebLocalFrame* frame,
185 const blink::WebURL& url,
186 blink::WebMediaPlayerClient* client,
187 blink::WebContentDecryptionModule* initial_cdm) {
188 return createMediaPlayer(frame, url, client);
ddorwin 2014/09/25 00:56:52 Really, the factory should be updated to accept in
189 }
190
183 blink::WebFrame* HTMLDocumentView::createChildFrame( 191 blink::WebFrame* HTMLDocumentView::createChildFrame(
184 blink::WebLocalFrame* parent, 192 blink::WebLocalFrame* parent,
185 const blink::WebString& frameName) { 193 const blink::WebString& frameName) {
186 blink::WebLocalFrame* web_frame = blink::WebLocalFrame::create(this); 194 blink::WebLocalFrame* web_frame = blink::WebLocalFrame::create(this);
187 parent->appendChild(web_frame); 195 parent->appendChild(web_frame);
188 return web_frame; 196 return web_frame;
189 } 197 }
190 198
191 void HTMLDocumentView::frameDetached(blink::WebFrame* frame) { 199 void HTMLDocumentView::frameDetached(blink::WebFrame* frame) {
192 if (frame->parent()) 200 if (frame->parent())
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 } 251 }
244 252
245 void HTMLDocumentView::OnViewInputEvent(View* view, const EventPtr& event) { 253 void HTMLDocumentView::OnViewInputEvent(View* view, const EventPtr& event) {
246 scoped_ptr<blink::WebInputEvent> web_event = 254 scoped_ptr<blink::WebInputEvent> web_event =
247 event.To<scoped_ptr<blink::WebInputEvent> >(); 255 event.To<scoped_ptr<blink::WebInputEvent> >();
248 if (web_event) 256 if (web_event)
249 web_view_->handleInputEvent(*web_event); 257 web_view_->handleInputEvent(*web_event);
250 } 258 }
251 259
252 } // namespace mojo 260 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/html_document_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698