OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_gtk.h" | 5 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 8 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
9 #include "chrome/browser/tab_contents/web_drag_dest_gtk.h" | 9 #include "chrome/browser/tab_contents/web_drag_dest_gtk.h" |
10 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 10 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
11 #include "chrome/browser/ui/gtk/tab_contents_drag_source.h" | 11 #include "chrome/browser/ui/gtk/tab_contents_drag_source.h" |
12 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate .h" | 12 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate .h" |
13 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_views.h" | |
13 #include "content/browser/tab_contents/tab_contents.h" | 14 #include "content/browser/tab_contents/tab_contents.h" |
14 #include "content/browser/tab_contents/tab_contents_view.h" | 15 #include "content/browser/tab_contents/tab_contents_view.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
17 | 18 |
18 using WebKit::WebDragOperation; | 19 using WebKit::WebDragOperation; |
19 using WebKit::WebDragOperationsMask; | 20 using WebKit::WebDragOperationsMask; |
20 using WebKit::WebInputEvent; | 21 using WebKit::WebInputEvent; |
21 | 22 |
22 namespace { | 23 namespace { |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 PositionChild(widget, child_x, 0, 0, 0); | 255 PositionChild(widget, child_x, 0, 0, 0); |
255 } | 256 } |
256 } | 257 } |
257 | 258 |
258 //////////////////////////////////////////////////////////////////////////////// | 259 //////////////////////////////////////////////////////////////////////////////// |
259 // NativeTabContentsView, public: | 260 // NativeTabContentsView, public: |
260 | 261 |
261 // static | 262 // static |
262 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( | 263 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( |
263 internal::NativeTabContentsViewDelegate* delegate) { | 264 internal::NativeTabContentsViewDelegate* delegate) { |
265 if (views::Widget::IsPureViews()) | |
266 return new NativeTabContentsViewViews(delegate); | |
264 return new NativeTabContentsViewGtk(delegate); | 267 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
| |
265 } | 268 } |
266 | 269 |
OLD | NEW |