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_container_win
.h" | 5 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_win
.h" |
6 | 6 |
7 #include "chrome/browser/ui/view_ids.h" | 7 #include "chrome/browser/ui/view_ids.h" |
8 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_vie
ws.h" | |
9 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 8 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
10 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" | 9 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" |
11 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 10 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
12 #include "content/browser/tab_contents/interstitial_page.h" | 11 #include "content/browser/tab_contents/interstitial_page.h" |
13 #include "content/browser/tab_contents/tab_contents.h" | 12 #include "content/browser/tab_contents/tab_contents.h" |
14 #include "ui/base/accessibility/accessible_view_state.h" | 13 #include "ui/base/accessibility/accessible_view_state.h" |
15 #include "ui/views/focus/focus_manager.h" | 14 #include "ui/views/focus/focus_manager.h" |
16 #include "ui/views/focus/widget_focus_manager.h" | 15 #include "ui/views/focus/widget_focus_manager.h" |
17 | 16 |
18 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 157 |
159 return View::GetNativeViewAccessible(); | 158 return View::GetNativeViewAccessible(); |
160 } | 159 } |
161 | 160 |
162 //////////////////////////////////////////////////////////////////////////////// | 161 //////////////////////////////////////////////////////////////////////////////// |
163 // NativeTabContentsContainer, public: | 162 // NativeTabContentsContainer, public: |
164 | 163 |
165 // static | 164 // static |
166 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( | 165 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( |
167 TabContentsContainer* container) { | 166 TabContentsContainer* container) { |
168 if (views::Widget::IsPureViews()) | |
169 return new NativeTabContentsContainerViews(container); | |
170 return new NativeTabContentsContainerWin(container); | 167 return new NativeTabContentsContainerWin(container); |
171 } | 168 } |
OLD | NEW |