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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO 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 4578 matching lines...) Expand 10 before | Expand all | Expand 10 after
4589 } 4589 }
4590 4590
4591 void RenderFrameImpl::enterFullscreen() { 4591 void RenderFrameImpl::enterFullscreen() {
4592 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true)); 4592 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true));
4593 } 4593 }
4594 4594
4595 void RenderFrameImpl::exitFullscreen() { 4595 void RenderFrameImpl::exitFullscreen() {
4596 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false)); 4596 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false));
4597 } 4597 }
4598 4598
4599 blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() {
4600 if (!app_banner_client_) {
4601 app_banner_client_ =
4602 GetContentClient()->renderer()->CreateAppBannerClient(this);
4603 }
4604
4605 return app_banner_client_.get();
4606 }
4607
4608 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, 4599 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme,
4609 const WebURL& url, 4600 const WebURL& url,
4610 const WebString& title) { 4601 const WebString& title) {
4611 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); 4602 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
4612 Send(new FrameHostMsg_RegisterProtocolHandler( 4603 Send(new FrameHostMsg_RegisterProtocolHandler(
4613 routing_id_, 4604 routing_id_,
4614 base::UTF16ToUTF8(base::StringPiece16(scheme)), 4605 base::UTF16ToUTF8(base::StringPiece16(scheme)),
4615 url, 4606 url,
4616 title, 4607 title,
4617 user_gesture)); 4608 user_gesture));
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after
6579 // event target. Potentially a Pepper plugin will receive the event. 6570 // event target. Potentially a Pepper plugin will receive the event.
6580 // In order to tell whether a plugin gets the last mouse event and which it 6571 // In order to tell whether a plugin gets the last mouse event and which it
6581 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6572 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6582 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6573 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6583 // |pepper_last_mouse_event_target_|. 6574 // |pepper_last_mouse_event_target_|.
6584 pepper_last_mouse_event_target_ = nullptr; 6575 pepper_last_mouse_event_target_ = nullptr;
6585 #endif 6576 #endif
6586 } 6577 }
6587 6578
6588 } // namespace content 6579 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/shell/renderer/layout_test/blink_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698