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/tab_contents_container.h" | 8 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
9 #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" |
10 #include "content/browser/renderer_host/render_widget_host_view.h" | 10 #include "content/browser/renderer_host/render_widget_host_view.h" |
11 #include "content/browser/tab_contents/interstitial_page.h" | 11 #include "content/browser/tab_contents/interstitial_page.h" |
12 #include "content/browser/tab_contents/tab_contents.h" | 12 #include "content/browser/tab_contents/tab_contents.h" |
13 #include "ui/base/accessibility/accessible_view_state.h" | 13 #include "ui/base/accessibility/accessible_view_state.h" |
14 #include "views/focus/focus_manager.h" | 14 #include "views/focus/focus_manager.h" |
15 | 15 |
16 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
17 // NativeTabContentsContainerWin, public: | 17 // NativeTabContentsContainerWin, public: |
18 | 18 |
19 NativeTabContentsContainerWin::NativeTabContentsContainerWin( | 19 NativeTabContentsContainerWin::NativeTabContentsContainerWin( |
20 TabContentsContainer* container) | 20 TabContentsContainer* container) |
21 : container_(container) { | 21 : container_(container) { |
22 SetID(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW); | 22 set_id(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW); |
23 } | 23 } |
24 | 24 |
25 NativeTabContentsContainerWin::~NativeTabContentsContainerWin() { | 25 NativeTabContentsContainerWin::~NativeTabContentsContainerWin() { |
26 } | 26 } |
27 | 27 |
28 //////////////////////////////////////////////////////////////////////////////// | 28 //////////////////////////////////////////////////////////////////////////////// |
29 // NativeTabContentsContainerWin, NativeTabContentsContainer overrides: | 29 // NativeTabContentsContainerWin, NativeTabContentsContainer overrides: |
30 | 30 |
31 void NativeTabContentsContainerWin::AttachContents(TabContents* contents) { | 31 void NativeTabContentsContainerWin::AttachContents(TabContents* contents) { |
32 // We need to register the tab contents window with the BrowserContainer so | 32 // We need to register the tab contents window with the BrowserContainer so |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 | 137 |
138 //////////////////////////////////////////////////////////////////////////////// | 138 //////////////////////////////////////////////////////////////////////////////// |
139 // NativeTabContentsContainer, public: | 139 // NativeTabContentsContainer, public: |
140 | 140 |
141 // static | 141 // static |
142 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( | 142 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( |
143 TabContentsContainer* container) { | 143 TabContentsContainer* container) { |
144 return new NativeTabContentsContainerWin(container); | 144 return new NativeTabContentsContainerWin(container); |
145 } | 145 } |
OLD | NEW |