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 "app/l10n_util.h" | 5 #include "app/l10n_util.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/browser_list.h" | 8 #include "chrome/browser/browser_list.h" |
9 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
10 #include "chrome/browser/extensions/extension_install_ui.h" | 10 #include "chrome/browser/extensions/extension_install_ui.h" |
| 11 #include "chrome/browser/ui/views/window.h" |
11 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
12 #include "chrome/browser/ui/views/window.h" | |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "views/controls/image_view.h" | 14 #include "views/controls/image_view.h" |
15 #include "views/controls/label.h" | 15 #include "views/controls/label.h" |
16 #include "views/standard_layout.h" | 16 #include "views/standard_layout.h" |
17 #include "views/view.h" | 17 #include "views/view.h" |
18 #include "views/window/dialog_delegate.h" | 18 #include "views/window/dialog_delegate.h" |
19 #include "views/window/window.h" | 19 #include "views/window/window.h" |
20 | 20 |
21 class Profile; | 21 class Profile; |
22 | 22 |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 BrowserWindow* window = browser->window(); | 319 BrowserWindow* window = browser->window(); |
320 if (!window) { | 320 if (!window) { |
321 delegate->InstallUIAbort(); | 321 delegate->InstallUIAbort(); |
322 return; | 322 return; |
323 } | 323 } |
324 | 324 |
325 browser::CreateViewsWindow(window->GetNativeHandle(), gfx::Rect(), | 325 browser::CreateViewsWindow(window->GetNativeHandle(), gfx::Rect(), |
326 new InstallDialogContent2(delegate, extension, icon, permissions)) | 326 new InstallDialogContent2(delegate, extension, icon, permissions)) |
327 ->Show(); | 327 ->Show(); |
328 } | 328 } |
OLD | NEW |