OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/views/tab_contents/native_tab_contents_container_win.h" | 5 #include "chrome/browser/views/tab_contents/native_tab_contents_container_win.h" |
6 | 6 |
7 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 7 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
8 #include "chrome/browser/tab_contents/interstitial_page.h" | 8 #include "chrome/browser/tab_contents/interstitial_page.h" |
9 #include "chrome/browser/tab_contents/tab_contents.h" | 9 #include "chrome/browser/tab_contents/tab_contents.h" |
10 #include "chrome/browser/views/tab_contents/tab_contents_container.h" | 10 #include "chrome/browser/views/tab_contents/tab_contents_container.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 bool NativeTabContentsContainerWin::GetAccessibleRole( | 155 bool NativeTabContentsContainerWin::GetAccessibleRole( |
156 AccessibilityTypes::Role* role) { | 156 AccessibilityTypes::Role* role) { |
157 DCHECK(role); | 157 DCHECK(role); |
158 | 158 |
159 *role = AccessibilityTypes::ROLE_GROUPING; | 159 *role = AccessibilityTypes::ROLE_GROUPING; |
160 return true; | 160 return true; |
161 } | 161 } |
162 | 162 |
163 //////////////////////////////////////////////////////////////////////////////// | 163 //////////////////////////////////////////////////////////////////////////////// |
164 // NativeTabContentsContainerWin, views::FocusTraversable overrides: | |
165 | |
166 views::FocusTraversable* | |
167 NativeTabContentsContainerWin::GetFocusTraversableParent() { | |
168 return GetRootView(); | |
169 } | |
170 | |
171 views::View* NativeTabContentsContainerWin::GetFocusTraversableParentView() { | |
172 return this; | |
173 } | |
174 | |
175 //////////////////////////////////////////////////////////////////////////////// | |
176 // NativeTabContentsContainer, public: | 164 // NativeTabContentsContainer, public: |
177 | 165 |
178 // static | 166 // static |
179 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( | 167 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( |
180 TabContentsContainer* container) { | 168 TabContentsContainer* container) { |
181 return new NativeTabContentsContainerWin(container); | 169 return new NativeTabContentsContainerWin(container); |
182 } | 170 } |
OLD | NEW |