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/dom_view.h" | 5 #include "chrome/browser/ui/views/dom_view.h" |
6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" |
7 #include "chrome/browser/renderer_preferences_util.h" | 8 #include "chrome/browser/renderer_preferences_util.h" |
8 #include "content/browser/tab_contents/tab_contents.h" | 9 #include "content/browser/tab_contents/tab_contents.h" |
9 #include "views/focus/focus_manager.h" | 10 #include "views/focus/focus_manager.h" |
10 | 11 |
11 #if defined(TOUCH_UI) | 12 #if defined(TOUCH_UI) |
12 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_touch.h" | 13 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_touch.h" |
13 #endif | 14 #endif |
14 | 15 |
15 // static | 16 // static |
16 const char DOMView::kViewClassName[] = | 17 const char DOMView::kViewClassName[] = |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 Detach(); | 79 Detach(); |
79 } | 80 } |
80 | 81 |
81 void DOMView::AttachTabContents() { | 82 void DOMView::AttachTabContents() { |
82 #if defined(TOUCH_UI) | 83 #if defined(TOUCH_UI) |
83 AttachToView(static_cast<TabContentsViewTouch*>(tab_contents_->view())); | 84 AttachToView(static_cast<TabContentsViewTouch*>(tab_contents_->view())); |
84 #else | 85 #else |
85 Attach(tab_contents_->GetNativeView()); | 86 Attach(tab_contents_->GetNativeView()); |
86 #endif | 87 #endif |
87 } | 88 } |
OLD | NEW |