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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2426503002: Make printing work better with OOPIF. (Closed)
Patch Set: rebase, many cleanups have been committed Created 4 years, 1 month 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 #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 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 #endif // defined(ENABLE_PLUGINS) 1495 #endif // defined(ENABLE_PLUGINS)
1496 1496
1497 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { 1497 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() {
1498 if (!web_user_media_client_) 1498 if (!web_user_media_client_)
1499 InitializeUserMediaClient(); 1499 InitializeUserMediaClient();
1500 return web_user_media_client_ 1500 return web_user_media_client_
1501 ? web_user_media_client_->media_stream_dispatcher() 1501 ? web_user_media_client_->media_stream_dispatcher()
1502 : nullptr; 1502 : nullptr;
1503 } 1503 }
1504 1504
1505 void RenderFrameImpl::ScriptedPrint(bool user_initiated) {
1506 for (auto& observer : observers_)
1507 observer.ScriptedPrint(user_initiated);
1508 }
1509
1505 bool RenderFrameImpl::Send(IPC::Message* message) { 1510 bool RenderFrameImpl::Send(IPC::Message* message) {
1506 return RenderThread::Get()->Send(message); 1511 return RenderThread::Get()->Send(message);
1507 } 1512 }
1508 1513
1509 #if defined(USE_EXTERNAL_POPUP_MENU) 1514 #if defined(USE_EXTERNAL_POPUP_MENU)
1510 void RenderFrameImpl::DidHideExternalPopupMenu() { 1515 void RenderFrameImpl::DidHideExternalPopupMenu() {
1511 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close 1516 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close
1512 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. 1517 // is called. Otherwise, createExternalPopupMenu() for new popup will fail.
1513 external_popup_menu_.reset(); 1518 external_popup_menu_.reset();
1514 } 1519 }
(...skipping 5093 matching lines...) Expand 10 before | Expand all | Expand 10 after
6608 // event target. Potentially a Pepper plugin will receive the event. 6613 // event target. Potentially a Pepper plugin will receive the event.
6609 // In order to tell whether a plugin gets the last mouse event and which it 6614 // In order to tell whether a plugin gets the last mouse event and which it
6610 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6615 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6611 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6616 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6612 // |pepper_last_mouse_event_target_|. 6617 // |pepper_last_mouse_event_target_|.
6613 pepper_last_mouse_event_target_ = nullptr; 6618 pepper_last_mouse_event_target_ = nullptr;
6614 #endif 6619 #endif
6615 } 6620 }
6616 6621
6617 } // namespace content 6622 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698