| 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_gtk.h" | 5 #include "chrome/browser/views/tab_contents/native_tab_contents_container_gtk.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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // TODO(port): figure out a11y | 170 // TODO(port): figure out a11y |
| 171 #if defined(OS_WIN) | 171 #if defined(OS_WIN) |
| 172 DCHECK(role); | 172 DCHECK(role); |
| 173 | 173 |
| 174 *role = AccessibilityTypes::ROLE_GROUPING; | 174 *role = AccessibilityTypes::ROLE_GROUPING; |
| 175 #endif | 175 #endif |
| 176 return true; | 176 return true; |
| 177 } | 177 } |
| 178 | 178 |
| 179 //////////////////////////////////////////////////////////////////////////////// | 179 //////////////////////////////////////////////////////////////////////////////// |
| 180 // NativeTabContentsContainerGtk, views::FocusTraversable overrides: | |
| 181 | |
| 182 views::FocusTraversable* | |
| 183 NativeTabContentsContainerGtk::GetFocusTraversableParent() { | |
| 184 return GetRootView(); | |
| 185 } | |
| 186 | |
| 187 views::View* NativeTabContentsContainerGtk::GetFocusTraversableParentView() { | |
| 188 return this; | |
| 189 } | |
| 190 | |
| 191 //////////////////////////////////////////////////////////////////////////////// | |
| 192 // NativeTabContentsContainer, public: | 180 // NativeTabContentsContainer, public: |
| 193 | 181 |
| 194 // static | 182 // static |
| 195 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( | 183 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( |
| 196 TabContentsContainer* container) { | 184 TabContentsContainer* container) { |
| 197 return new NativeTabContentsContainerGtk(container); | 185 return new NativeTabContentsContainerGtk(container); |
| 198 } | 186 } |
| OLD | NEW |