| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/tab_contents_container.h" | 5 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
| 6 | 6 |
| 7 #include "chrome/browser/renderer_host/render_view_host.h" | 7 #include "chrome/browser/renderer_host/render_view_host.h" |
| 8 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 8 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
| 9 #include "chrome/browser/tab_contents/interstitial_page.h" | 9 #include "chrome/browser/tab_contents/interstitial_page.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
| 11 #include "chrome/browser/ui/view_ids.h" | 11 #include "chrome/browser/ui/view_ids.h" |
| 12 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk
.h" |
| 12 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container.h" | 13 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container.h" |
| 13 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" | 14 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" |
| 14 #include "chrome/common/notification_details.h" | 15 #include "chrome/common/notification_details.h" |
| 15 #include "chrome/common/notification_source.h" | 16 #include "chrome/common/notification_source.h" |
| 16 #include "views/fill_layout.h" | 17 #include "views/fill_layout.h" |
| 17 | 18 |
| 18 #if defined(OS_LINUX) | |
| 19 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk
.h" | |
| 20 #endif | |
| 21 | |
| 22 // Some of this class is implemented in tab_contents_container.cc, where | 19 // Some of this class is implemented in tab_contents_container.cc, where |
| 23 // the implementation doesn't vary between a pure views approach and a | 20 // the implementation doesn't vary between a pure views approach and a |
| 24 // native view host approach. See the header file for details. | 21 // native view host approach. See the header file for details. |
| 25 | 22 |
| 26 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
| 27 // TabContentsContainer, public: | 24 // TabContentsContainer, public: |
| 28 | 25 |
| 29 TabContentsContainer::TabContentsContainer() | 26 TabContentsContainer::TabContentsContainer() |
| 30 : tab_contents_(NULL) { | 27 : tab_contents_(NULL) { |
| 31 SetID(VIEW_ID_TAB_CONTAINER); | 28 SetID(VIEW_ID_TAB_CONTAINER); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 60 void TabContentsContainer::TabContentsFocused(TabContents* tab_contents) { | 57 void TabContentsContainer::TabContentsFocused(TabContents* tab_contents) { |
| 61 } | 58 } |
| 62 | 59 |
| 63 void TabContentsContainer::SetFastResize(bool fast_resize) { | 60 void TabContentsContainer::SetFastResize(bool fast_resize) { |
| 64 } | 61 } |
| 65 | 62 |
| 66 void TabContentsContainer::RenderViewHostChanged(RenderViewHost* old_host, | 63 void TabContentsContainer::RenderViewHostChanged(RenderViewHost* old_host, |
| 67 RenderViewHost* new_host) { | 64 RenderViewHost* new_host) { |
| 68 NOTIMPLEMENTED(); // TODO(anicolao) | 65 NOTIMPLEMENTED(); // TODO(anicolao) |
| 69 } | 66 } |
| OLD | NEW |