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

Side by Side Diff: content/browser/web_contents/web_contents_view_child_frame.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 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 (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_frame_proxy_host.h" 8 #include "content/browser/frame_host/render_frame_proxy_host.h"
9 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 9 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void WebContentsViewChildFrame::StoreFocus() { 145 void WebContentsViewChildFrame::StoreFocus() {
146 NOTREACHED(); 146 NOTREACHED();
147 } 147 }
148 148
149 DropData* WebContentsViewChildFrame::GetDropData() const { 149 DropData* WebContentsViewChildFrame::GetDropData() const {
150 NOTREACHED(); 150 NOTREACHED();
151 return nullptr; 151 return nullptr;
152 } 152 }
153 153
154 void WebContentsViewChildFrame::UpdateDragCursor(WebDragOperation operation) { 154 void WebContentsViewChildFrame::UpdateDragCursor(WebDragOperation operation) {
155 if (auto view = GetOuterDelegateView()) 155 if (auto* view = GetOuterDelegateView())
156 view->UpdateDragCursor(operation); 156 view->UpdateDragCursor(operation);
157 } 157 }
158 158
159 void WebContentsViewChildFrame::GotFocus() { 159 void WebContentsViewChildFrame::GotFocus() {
160 NOTREACHED(); 160 NOTREACHED();
161 } 161 }
162 162
163 void WebContentsViewChildFrame::TakeFocus(bool reverse) { 163 void WebContentsViewChildFrame::TakeFocus(bool reverse) {
164 RenderFrameProxyHost* rfp = web_contents_->GetMainFrame() 164 RenderFrameProxyHost* rfp = web_contents_->GetMainFrame()
165 ->frame_tree_node() 165 ->frame_tree_node()
(...skipping 14 matching lines...) Expand all
180 NOTREACHED(); 180 NOTREACHED();
181 } 181 }
182 182
183 void WebContentsViewChildFrame::StartDragging( 183 void WebContentsViewChildFrame::StartDragging(
184 const DropData& drop_data, 184 const DropData& drop_data,
185 WebDragOperationsMask ops, 185 WebDragOperationsMask ops,
186 const gfx::ImageSkia& image, 186 const gfx::ImageSkia& image,
187 const gfx::Vector2d& image_offset, 187 const gfx::Vector2d& image_offset,
188 const DragEventSourceInfo& event_info, 188 const DragEventSourceInfo& event_info,
189 RenderWidgetHostImpl* source_rwh) { 189 RenderWidgetHostImpl* source_rwh) {
190 if (auto view = GetOuterDelegateView()) { 190 if (auto* view = GetOuterDelegateView()) {
191 view->StartDragging( 191 view->StartDragging(
192 drop_data, ops, image, image_offset, event_info, source_rwh); 192 drop_data, ops, image, image_offset, event_info, source_rwh);
193 } else { 193 } else {
194 web_contents_->GetOuterWebContents()->SystemDragEnded(source_rwh); 194 web_contents_->GetOuterWebContents()->SystemDragEnded(source_rwh);
195 } 195 }
196 } 196 }
197 197
198 } // namespace content 198 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/websockets/websocket_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698