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

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

Issue 2508923003: Make printing work better with OOPIF. (try 2) (Closed)
Patch Set: Fix android_webview 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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 #endif // defined(ENABLE_PLUGINS) 1497 #endif // defined(ENABLE_PLUGINS)
1498 1498
1499 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() { 1499 MediaStreamDispatcher* RenderFrameImpl::GetMediaStreamDispatcher() {
1500 if (!web_user_media_client_) 1500 if (!web_user_media_client_)
1501 InitializeUserMediaClient(); 1501 InitializeUserMediaClient();
1502 return web_user_media_client_ 1502 return web_user_media_client_
1503 ? web_user_media_client_->media_stream_dispatcher() 1503 ? web_user_media_client_->media_stream_dispatcher()
1504 : nullptr; 1504 : nullptr;
1505 } 1505 }
1506 1506
1507 void RenderFrameImpl::ScriptedPrint(bool user_initiated) {
1508 for (auto& observer : observers_)
1509 observer.ScriptedPrint(user_initiated);
1510 }
1511
1507 bool RenderFrameImpl::Send(IPC::Message* message) { 1512 bool RenderFrameImpl::Send(IPC::Message* message) {
1508 return RenderThread::Get()->Send(message); 1513 return RenderThread::Get()->Send(message);
1509 } 1514 }
1510 1515
1511 #if defined(USE_EXTERNAL_POPUP_MENU) 1516 #if defined(USE_EXTERNAL_POPUP_MENU)
1512 void RenderFrameImpl::DidHideExternalPopupMenu() { 1517 void RenderFrameImpl::DidHideExternalPopupMenu() {
1513 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close 1518 // We need to clear external_popup_menu_ as soon as ExternalPopupMenu::close
1514 // is called. Otherwise, createExternalPopupMenu() for new popup will fail. 1519 // is called. Otherwise, createExternalPopupMenu() for new popup will fail.
1515 external_popup_menu_.reset(); 1520 external_popup_menu_.reset();
1516 } 1521 }
(...skipping 5115 matching lines...) Expand 10 before | Expand all | Expand 10 after
6632 // event target. Potentially a Pepper plugin will receive the event. 6637 // event target. Potentially a Pepper plugin will receive the event.
6633 // In order to tell whether a plugin gets the last mouse event and which it 6638 // In order to tell whether a plugin gets the last mouse event and which it
6634 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6639 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6635 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6640 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6636 // |pepper_last_mouse_event_target_|. 6641 // |pepper_last_mouse_event_target_|.
6637 pepper_last_mouse_event_target_ = nullptr; 6642 pepper_last_mouse_event_target_ = nullptr;
6638 #endif 6643 #endif
6639 } 6644 }
6640 6645
6641 } // namespace content 6646 } // 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