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

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

Issue 13037003: permissionrequest API for guest Download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge two CanDownload* functions. Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_guest.h" 5 #include "content/browser/web_contents/web_contents_view_guest.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "content/browser/browser_plugin/browser_plugin_guest.h" 8 #include "content/browser/browser_plugin/browser_plugin_guest.h"
9 #include "content/browser/renderer_host/render_view_host_factory.h" 9 #include "content/browser/renderer_host/render_view_host_factory.h"
10 #include "content/browser/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
(...skipping 18 matching lines...) Expand all
29 WebContentsViewPort* platform_view) 29 WebContentsViewPort* platform_view)
30 : web_contents_(web_contents), 30 : web_contents_(web_contents),
31 guest_(guest), 31 guest_(guest),
32 platform_view_(platform_view) { 32 platform_view_(platform_view) {
33 } 33 }
34 34
35 WebContentsViewGuest::~WebContentsViewGuest() { 35 WebContentsViewGuest::~WebContentsViewGuest() {
36 } 36 }
37 37
38 gfx::NativeView WebContentsViewGuest::GetNativeView() const { 38 gfx::NativeView WebContentsViewGuest::GetNativeView() const {
39 return NULL; 39 return platform_view_->GetNativeView();
Fady Samuel 2013/03/26 15:34:34 Why is this necessary?
lazyboy 2013/03/26 16:04:36 The file dialog code path uses this.
40 } 40 }
41 41
42 gfx::NativeView WebContentsViewGuest::GetContentNativeView() const { 42 gfx::NativeView WebContentsViewGuest::GetContentNativeView() const {
43 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); 43 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView();
44 if (!rwhv) 44 if (!rwhv)
45 return NULL; 45 return NULL;
46 return rwhv->GetNativeView(); 46 return rwhv->GetNativeView();
47 } 47 }
48 48
49 gfx::NativeWindow WebContentsViewGuest::GetTopLevelNativeWindow() const { 49 gfx::NativeWindow WebContentsViewGuest::GetTopLevelNativeWindow() const {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 void WebContentsViewGuest::StartDragging( 184 void WebContentsViewGuest::StartDragging(
185 const WebDropData& drop_data, 185 const WebDropData& drop_data,
186 WebDragOperationsMask ops, 186 WebDragOperationsMask ops,
187 const gfx::ImageSkia& image, 187 const gfx::ImageSkia& image,
188 const gfx::Vector2d& image_offset, 188 const gfx::Vector2d& image_offset,
189 const DragEventSourceInfo& event_info) { 189 const DragEventSourceInfo& event_info) {
190 NOTIMPLEMENTED(); 190 NOTIMPLEMENTED();
191 } 191 }
192 192
193 } // namespace content 193 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698