| 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 4578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |