| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/browser/web_contents/web_contents_view_child_frame.h" | 5 #include "content/browser/web_contents/web_contents_view_child_frame.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 8 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
| 9 #include "content/browser/web_contents/web_contents_impl.h" | 9 #include "content/browser/web_contents/web_contents_impl.h" |
| 10 #include "content/public/browser/web_contents_view_delegate.h" | 10 #include "content/public/browser/web_contents_view_delegate.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 | 101 |
| 102 void WebContentsViewChildFrame::RenderViewCreated(RenderViewHost* host) {} | 102 void WebContentsViewChildFrame::RenderViewCreated(RenderViewHost* host) {} |
| 103 | 103 |
| 104 void WebContentsViewChildFrame::RenderViewSwappedIn(RenderViewHost* host) {} | 104 void WebContentsViewChildFrame::RenderViewSwappedIn(RenderViewHost* host) {} |
| 105 | 105 |
| 106 void WebContentsViewChildFrame::SetOverscrollControllerEnabled(bool enabled) { | 106 void WebContentsViewChildFrame::SetOverscrollControllerEnabled(bool enabled) { |
| 107 // This is managed by the outer view. | 107 // This is managed by the outer view. |
| 108 } | 108 } |
| 109 | 109 |
| 110 ui::Compositor* WebContentsViewChildFrame::GetCompositor() const { |
| 111 return GetOuterView()->GetCompositor(); |
| 112 } |
| 113 |
| 110 #if defined(OS_MACOSX) | 114 #if defined(OS_MACOSX) |
| 111 bool WebContentsViewChildFrame::IsEventTracking() const { | 115 bool WebContentsViewChildFrame::IsEventTracking() const { |
| 112 return false; | 116 return false; |
| 113 } | 117 } |
| 114 | 118 |
| 115 void WebContentsViewChildFrame::CloseTabAfterEventTracking() { | 119 void WebContentsViewChildFrame::CloseTabAfterEventTracking() { |
| 116 NOTREACHED(); | 120 NOTREACHED(); |
| 117 } | 121 } |
| 118 | 122 |
| 119 void WebContentsViewChildFrame::SetAllowOtherViews(bool allow) { | 123 void WebContentsViewChildFrame::SetAllowOtherViews(bool allow) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void WebContentsViewChildFrame::StartDragging( | 169 void WebContentsViewChildFrame::StartDragging( |
| 166 const DropData& drop_data, | 170 const DropData& drop_data, |
| 167 WebDragOperationsMask ops, | 171 WebDragOperationsMask ops, |
| 168 const gfx::ImageSkia& image, | 172 const gfx::ImageSkia& image, |
| 169 const gfx::Vector2d& image_offset, | 173 const gfx::Vector2d& image_offset, |
| 170 const DragEventSourceInfo& event_info) { | 174 const DragEventSourceInfo& event_info) { |
| 171 NOTREACHED(); | 175 NOTREACHED(); |
| 172 } | 176 } |
| 173 | 177 |
| 174 } // namespace content | 178 } // namespace content |
| OLD | NEW |