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

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

Issue 2426503002: Make printing work better with OOPIF. (Closed)
Patch Set: Better plumbing in AwPrintManager 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 #endif // defined(ENABLE_PLUGINS) 1487 #endif // defined(ENABLE_PLUGINS)
1488 1488
1489 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { 1489 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() {
1490 if (!web_user_media_client_) 1490 if (!web_user_media_client_)
1491 InitializeUserMediaClient(); 1491 InitializeUserMediaClient();
1492 return web_user_media_client_ 1492 return web_user_media_client_
1493 ? web_user_media_client_->media_stream_dispatcher() 1493 ? web_user_media_client_->media_stream_dispatcher()
1494 : nullptr; 1494 : nullptr;
1495 } 1495 }
1496 1496
1497 void RenderFrameImpl::ScriptedPrint(bool user_initiated) {
1498 for (auto& observer : observers_)
1499 observer.ScriptedPrint(user_initiated);
1500 }
1501
1497 bool RenderFrameImpl::Send(IPC::Message* message) { 1502 bool RenderFrameImpl::Send(IPC::Message* message) {
1498 return RenderThread::Get()->Send(message); 1503 return RenderThread::Get()->Send(message);
1499 } 1504 }
1500 1505
1501 #if defined(USE_EXTERNAL_POPUP_MENU) 1506 #if defined(USE_EXTERNAL_POPUP_MENU)
1502 void RenderFrameImpl::DidHideExternalPopupMenu() { 1507 void RenderFrameImpl::DidHideExternalPopupMenu() {
1503 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close 1508 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close
1504 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. 1509 // is called. Otherwise, createExternalPopupMenu() for new popup will fail.
1505 external_popup_menu_.reset(); 1510 external_popup_menu_.reset();
1506 } 1511 }
(...skipping 5115 matching lines...) Expand 10 before | Expand all | Expand 10 after
6622 // event target. Potentially a Pepper plugin will receive the event. 6627 // event target. Potentially a Pepper plugin will receive the event.
6623 // In order to tell whether a plugin gets the last mouse event and which it 6628 // In order to tell whether a plugin gets the last mouse event and which it
6624 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6629 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6625 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6630 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6626 // |pepper_last_mouse_event_target_|. 6631 // |pepper_last_mouse_event_target_|.
6627 pepper_last_mouse_event_target_ = nullptr; 6632 pepper_last_mouse_event_target_ = nullptr;
6628 #endif 6633 #endif
6629 } 6634 }
6630 6635
6631 } // namespace content 6636 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698