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

Side by Side Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 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 "chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.h" 5 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/ui/sad_tab_helper.h" 8 #include "chrome/browser/ui/sad_tab_helper.h"
9 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_win.h" 9 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_win.h"
10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 void NativeTabContentsViewWin::Unparent() { 110 void NativeTabContentsViewWin::Unparent() {
111 // Note that we do not DCHECK on focus_manager_ as it may be NULL when used 111 // Note that we do not DCHECK on focus_manager_ as it may be NULL when used
112 // with an external tab container. 112 // with an external tab container.
113 views::Widget::ReparentNativeView(GetNativeView(), 113 views::Widget::ReparentNativeView(GetNativeView(),
114 HiddenTabHostWindow::Instance()); 114 HiddenTabHostWindow::Instance());
115 } 115 }
116 116
117 RenderWidgetHostView* NativeTabContentsViewWin::CreateRenderWidgetHostView( 117 RenderWidgetHostView* NativeTabContentsViewWin::CreateRenderWidgetHostView(
118 RenderWidgetHost* render_widget_host) { 118 content::RenderWidgetHost* render_widget_host) {
119 RenderWidgetHostView* view = 119 RenderWidgetHostView* view =
120 RenderWidgetHostView::CreateViewForWidget(render_widget_host); 120 RenderWidgetHostView::CreateViewForWidget(render_widget_host);
121 121
122 view->InitAsChild(GetNativeView()); 122 view->InitAsChild(GetNativeView());
123 view->Show(); 123 view->Show();
124 return view; 124 return view;
125 } 125 }
126 126
127 gfx::NativeWindow NativeTabContentsViewWin::GetTopLevelNativeWindow() const { 127 gfx::NativeWindow NativeTabContentsViewWin::GetTopLevelNativeWindow() const {
128 return ::GetAncestor(GetNativeView(), GA_ROOT); 128 return ::GetAncestor(GetNativeView(), GA_ROOT);
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } 349 }
350 350
351 //////////////////////////////////////////////////////////////////////////////// 351 ////////////////////////////////////////////////////////////////////////////////
352 // NativeTabContentsView, public: 352 // NativeTabContentsView, public:
353 353
354 // static 354 // static
355 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( 355 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView(
356 internal::NativeTabContentsViewDelegate* delegate) { 356 internal::NativeTabContentsViewDelegate* delegate) {
357 return new NativeTabContentsViewWin(delegate); 357 return new NativeTabContentsViewWin(delegate);
358 } 358 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698