OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "apps/shell/web_view_window.h" | 5 #include "apps/shell/browser/web_view_window.h" |
6 | 6 |
7 #include "content/public/browser/web_contents.h" | 7 #include "content/public/browser/web_contents.h" |
8 #include "content/public/browser/web_contents_view.h" | 8 #include "content/public/browser/web_contents_view.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/views/controls/webview/webview.h" | 10 #include "ui/views/controls/webview/webview.h" |
11 #include "ui/views/layout/fill_layout.h" | 11 #include "ui/views/layout/fill_layout.h" |
12 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
13 #include "ui/views/widget/widget_delegate.h" | 13 #include "ui/views/widget/widget_delegate.h" |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 views::Widget::InitParams params; | 74 views::Widget::InitParams params; |
75 params.delegate = new WebViewWindowContents(browser_context); | 75 params.delegate = new WebViewWindowContents(browser_context); |
76 params.context = window_context; | 76 params.context = window_context; |
77 params.bounds = window_context->bounds(); | 77 params.bounds = window_context->bounds(); |
78 params.top_level = true; | 78 params.top_level = true; |
79 widget->Init(params); | 79 widget->Init(params); |
80 widget->Show(); | 80 widget->Show(); |
81 } | 81 } |
82 | 82 |
83 } // namespace apps | 83 } // namespace apps |
OLD | NEW |