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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Fix Win clang compile Created 4 years, 2 months 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 4437 matching lines...) Expand 10 before | Expand all | Expand 10 after
4448 } 4448 }
4449 4449
4450 void RenderFrameImpl::enterFullscreen() { 4450 void RenderFrameImpl::enterFullscreen() {
4451 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true)); 4451 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true));
4452 } 4452 }
4453 4453
4454 void RenderFrameImpl::exitFullscreen() { 4454 void RenderFrameImpl::exitFullscreen() {
4455 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false)); 4455 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false));
4456 } 4456 }
4457 4457
4458 blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() {
4459 if (!app_banner_client_) {
4460 app_banner_client_ =
4461 GetContentClient()->renderer()->CreateAppBannerClient(this);
4462 }
4463
4464 return app_banner_client_.get();
4465 }
4466
4467 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, 4458 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme,
4468 const WebURL& url, 4459 const WebURL& url,
4469 const WebString& title) { 4460 const WebString& title) {
4470 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); 4461 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
4471 Send(new FrameHostMsg_RegisterProtocolHandler( 4462 Send(new FrameHostMsg_RegisterProtocolHandler(
4472 routing_id_, 4463 routing_id_,
4473 base::UTF16ToUTF8(base::StringPiece16(scheme)), 4464 base::UTF16ToUTF8(base::StringPiece16(scheme)),
4474 url, 4465 url,
4475 title, 4466 title,
4476 user_gesture)); 4467 user_gesture));
(...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
6431 // event target. Potentially a Pepper plugin will receive the event. 6422 // event target. Potentially a Pepper plugin will receive the event.
6432 // In order to tell whether a plugin gets the last mouse event and which it 6423 // In order to tell whether a plugin gets the last mouse event and which it
6433 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6424 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6434 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6425 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6435 // |pepper_last_mouse_event_target_|. 6426 // |pepper_last_mouse_event_target_|.
6436 pepper_last_mouse_event_target_ = nullptr; 6427 pepper_last_mouse_event_target_ = nullptr;
6437 #endif 6428 #endif
6438 } 6429 }
6439 6430
6440 } // namespace content 6431 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698