| OLD | NEW |
| 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 4496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4507 } | 4507 } |
| 4508 | 4508 |
| 4509 void RenderFrameImpl::enterFullscreen() { | 4509 void RenderFrameImpl::enterFullscreen() { |
| 4510 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true)); | 4510 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true)); |
| 4511 } | 4511 } |
| 4512 | 4512 |
| 4513 void RenderFrameImpl::exitFullscreen() { | 4513 void RenderFrameImpl::exitFullscreen() { |
| 4514 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false)); | 4514 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false)); |
| 4515 } | 4515 } |
| 4516 | 4516 |
| 4517 blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() { | |
| 4518 if (!app_banner_client_) { | |
| 4519 app_banner_client_ = | |
| 4520 GetContentClient()->renderer()->CreateAppBannerClient(this); | |
| 4521 } | |
| 4522 | |
| 4523 return app_banner_client_.get(); | |
| 4524 } | |
| 4525 | |
| 4526 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, | 4517 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, |
| 4527 const WebURL& url, | 4518 const WebURL& url, |
| 4528 const WebString& title) { | 4519 const WebString& title) { |
| 4529 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); | 4520 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); |
| 4530 Send(new FrameHostMsg_RegisterProtocolHandler( | 4521 Send(new FrameHostMsg_RegisterProtocolHandler( |
| 4531 routing_id_, | 4522 routing_id_, |
| 4532 base::UTF16ToUTF8(base::StringPiece16(scheme)), | 4523 base::UTF16ToUTF8(base::StringPiece16(scheme)), |
| 4533 url, | 4524 url, |
| 4534 title, | 4525 title, |
| 4535 user_gesture)); | 4526 user_gesture)); |
| (...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6491 // event target. Potentially a Pepper plugin will receive the event. | 6482 // event target. Potentially a Pepper plugin will receive the event. |
| 6492 // In order to tell whether a plugin gets the last mouse event and which it | 6483 // In order to tell whether a plugin gets the last mouse event and which it |
| 6493 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6484 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6494 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6485 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6495 // |pepper_last_mouse_event_target_|. | 6486 // |pepper_last_mouse_event_target_|. |
| 6496 pepper_last_mouse_event_target_ = nullptr; | 6487 pepper_last_mouse_event_target_ = nullptr; |
| 6497 #endif | 6488 #endif |
| 6498 } | 6489 } |
| 6499 | 6490 |
| 6500 } // namespace content | 6491 } // namespace content |
| OLD | NEW |