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/aura/app_list_window.h" | 5 #include "chrome/browser/ui/views/aura/app_list_window.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile_manager.h" | 7 #include "chrome/browser/profiles/profile_manager.h" |
8 #include "chrome/browser/ui/views/dom_view.h" | 8 #include "chrome/browser/ui/views/dom_view.h" |
9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
10 #include "content/browser/renderer_host/render_view_host.h" | 10 #include "content/browser/renderer_host/render_view_host.h" |
11 #include "content/browser/renderer_host/render_widget_host_view.h" | 11 #include "content/browser/renderer_host/render_widget_host_view.h" |
12 #include "views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
13 | 13 |
14 AppListWindow::AppListWindow( | 14 AppListWindow::AppListWindow( |
15 const aura_shell::ShellDelegate::SetWidgetCallback& callback) | 15 const aura_shell::ShellDelegate::SetWidgetCallback& callback) |
16 : widget_(NULL), | 16 : widget_(NULL), |
17 contents_(NULL), | 17 contents_(NULL), |
18 callback_(callback) { | 18 callback_(callback) { |
19 Init(); | 19 Init(); |
20 } | 20 } |
21 | 21 |
22 AppListWindow::~AppListWindow() { | 22 AppListWindow::~AppListWindow() { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // unexpected animation. | 75 // unexpected animation. |
76 widget_params.bounds = gfx::Rect(0, 0, 900, 700); | 76 widget_params.bounds = gfx::Rect(0, 0, 900, 700); |
77 widget_params.delegate = this; | 77 widget_params.delegate = this; |
78 widget_params.keep_on_top = true; | 78 widget_params.keep_on_top = true; |
79 widget_params.transparent = true; | 79 widget_params.transparent = true; |
80 | 80 |
81 widget_ = new views::Widget; | 81 widget_ = new views::Widget; |
82 widget_->Init(widget_params); | 82 widget_->Init(widget_params); |
83 widget_->SetContentsView(contents_); | 83 widget_->SetContentsView(contents_); |
84 } | 84 } |
OLD | NEW |