OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/browser/render_widget_host_view.h" | 10 #include "content/public/browser/render_widget_host_view.h" |
11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
12 #include "ui/base/accessibility/accessible_view_state.h" | 12 #include "ui/base/accessibility/accessible_view_state.h" |
13 #include "ui/views/focus/focus_manager.h" | 13 #include "ui/views/focus/focus_manager.h" |
14 #include "ui/views/focus/widget_focus_manager.h" | 14 #include "ui/views/focus/widget_focus_manager.h" |
15 | 15 |
16 using content::RenderViewHost; | 16 using content::RenderViewHost; |
17 using content::WebContents; | 17 using content::WebContents; |
18 | 18 |
19 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
20 // NativeTabContentsContainerWin, public: | 20 // NativeTabContentsContainerWin, public: |
21 | 21 |
22 NativeTabContentsContainerWin::NativeTabContentsContainerWin( | 22 NativeTabContentsContainerWin::NativeTabContentsContainerWin( |
23 TabContentsContainer* container) | 23 TabContentsContainer* container) |
24 : container_(container) { | 24 : container_(container) { |
25 set_id(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW); | |
26 } | 25 } |
27 | 26 |
28 NativeTabContentsContainerWin::~NativeTabContentsContainerWin() { | 27 NativeTabContentsContainerWin::~NativeTabContentsContainerWin() { |
29 } | 28 } |
30 | 29 |
31 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
32 // NativeTabContentsContainerWin, NativeTabContentsContainer overrides: | 31 // NativeTabContentsContainerWin, NativeTabContentsContainer overrides: |
33 | 32 |
34 void NativeTabContentsContainerWin::AttachContents(WebContents* contents) { | 33 void NativeTabContentsContainerWin::AttachContents(WebContents* contents) { |
35 // We need to register the tab contents window with the BrowserContainer so | 34 // We need to register the tab contents window with the BrowserContainer so |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 } | 149 } |
151 | 150 |
152 //////////////////////////////////////////////////////////////////////////////// | 151 //////////////////////////////////////////////////////////////////////////////// |
153 // NativeTabContentsContainer, public: | 152 // NativeTabContentsContainer, public: |
154 | 153 |
155 // static | 154 // static |
156 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( | 155 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( |
157 TabContentsContainer* container) { | 156 TabContentsContainer* container) { |
158 return new NativeTabContentsContainerWin(container); | 157 return new NativeTabContentsContainerWin(container); |
159 } | 158 } |
OLD | NEW |