Chromium Code Reviews| Index: chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc |
| =================================================================== |
| --- chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc (revision 89828) |
| +++ chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc (working copy) |
| @@ -10,6 +10,7 @@ |
| #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
| #include "chrome/browser/ui/gtk/tab_contents_drag_source.h" |
| #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate.h" |
| +#include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_views.h" |
| #include "content/browser/tab_contents/tab_contents.h" |
| #include "content/browser/tab_contents/tab_contents_view.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" |
| @@ -261,6 +262,8 @@ |
| // static |
| NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( |
| internal::NativeTabContentsViewDelegate* delegate) { |
| + if (views::Widget::IsPureViews()) |
| + return new NativeTabContentsViewViews(delegate); |
| return new NativeTabContentsViewGtk(delegate); |
|
oshima
2011/06/21 22:36:07
I thought we dont have native gtk widget between R
Ben Goodger (Google)
2011/06/21 22:54:48
This class is used by the linux_view and linux_chr
|
| } |