Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: apps/shell/browser/web_view_window.cc

Issue 151893002: Reorganize apps/shell into app, browser and common directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ash (subdirs) Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« apps/DEPS ('K') | « apps/shell/browser/web_view_window.h ('k') | apps/shell/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698