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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Nits 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 4558 matching lines...) Expand 10 before | Expand all | Expand 10 after
4569 } 4569 }
4570 4570
4571 void RenderFrameImpl::enterFullscreen() { 4571 void RenderFrameImpl::enterFullscreen() {
4572 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true)); 4572 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true));
4573 } 4573 }
4574 4574
4575 void RenderFrameImpl::exitFullscreen() { 4575 void RenderFrameImpl::exitFullscreen() {
4576 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false)); 4576 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false));
4577 } 4577 }
4578 4578
4579 blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() {
4580 if (!app_banner_client_) {
4581 app_banner_client_ =
4582 GetContentClient()->renderer()->CreateAppBannerClient(this);
4583 }
4584
4585 return app_banner_client_.get();
4586 }
4587
4588 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, 4579 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme,
4589 const WebURL& url, 4580 const WebURL& url,
4590 const WebString& title) { 4581 const WebString& title) {
4591 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); 4582 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
4592 Send(new FrameHostMsg_RegisterProtocolHandler( 4583 Send(new FrameHostMsg_RegisterProtocolHandler(
4593 routing_id_, 4584 routing_id_,
4594 base::UTF16ToUTF8(base::StringPiece16(scheme)), 4585 base::UTF16ToUTF8(base::StringPiece16(scheme)),
4595 url, 4586 url,
4596 title, 4587 title,
4597 user_gesture)); 4588 user_gesture));
(...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after
6549 // event target. Potentially a Pepper plugin will receive the event. 6540 // event target. Potentially a Pepper plugin will receive the event.
6550 // In order to tell whether a plugin gets the last mouse event and which it 6541 // In order to tell whether a plugin gets the last mouse event and which it
6551 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6542 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6552 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6543 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6553 // |pepper_last_mouse_event_target_|. 6544 // |pepper_last_mouse_event_target_|.
6554 pepper_last_mouse_event_target_ = nullptr; 6545 pepper_last_mouse_event_target_ = nullptr;
6555 #endif 6546 #endif
6556 } 6547 }
6557 6548
6558 } // namespace content 6549 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698