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

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

Issue 11773042: Allow embedders to provide a custom view for popup (select box) widgets, (Closed) Base URL: http://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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) 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/renderer_host/render_view_host_factory.h" 8 #include "content/browser/renderer_host/render_view_host_factory.h"
9 #include "content/browser/renderer_host/render_view_host_impl.h" 9 #include "content/browser/renderer_host/render_view_host_impl.h"
10 #include "content/browser/renderer_host/render_widget_host_view_guest.h" 10 #include "content/browser/renderer_host/render_widget_host_view_guest.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return render_widget_host->GetView(); 49 return render_widget_host->GetView();
50 } 50 }
51 51
52 RenderWidgetHostView* view = new RenderWidgetHostViewGuest( 52 RenderWidgetHostView* view = new RenderWidgetHostViewGuest(
53 render_widget_host, 53 render_widget_host,
54 guest_); 54 guest_);
55 55
56 return view; 56 return view;
57 } 57 }
58 58
59 RenderWidgetHostView* WebContentsViewGuest::CreateViewForPopupWidget(
60 RenderWidgetHost* render_widget_host) {
61 return RenderWidgetHostViewPort::CreateViewForWidget(render_widget_host);
62 }
63
59 gfx::NativeView WebContentsViewGuest::GetNativeView() const { 64 gfx::NativeView WebContentsViewGuest::GetNativeView() const {
60 return NULL; 65 return NULL;
61 } 66 }
62 67
63 gfx::NativeView WebContentsViewGuest::GetContentNativeView() const { 68 gfx::NativeView WebContentsViewGuest::GetContentNativeView() const {
64 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); 69 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView();
65 if (!rwhv) 70 if (!rwhv)
66 return NULL; 71 return NULL;
67 return rwhv->GetNativeView(); 72 return rwhv->GetNativeView();
68 } 73 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void WebContentsViewGuest::StartDragging( 178 void WebContentsViewGuest::StartDragging(
174 const WebDropData& drop_data, 179 const WebDropData& drop_data,
175 WebDragOperationsMask ops, 180 WebDragOperationsMask ops,
176 const gfx::ImageSkia& image, 181 const gfx::ImageSkia& image,
177 const gfx::Vector2d& image_offset, 182 const gfx::Vector2d& image_offset,
178 const DragEventSourceInfo& event_info) { 183 const DragEventSourceInfo& event_info) {
179 NOTIMPLEMENTED(); 184 NOTIMPLEMENTED();
180 } 185 }
181 186
182 } // namespace content 187 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_guest.h ('k') | content/browser/web_contents/web_contents_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698