OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/shell_dialogs.h" | 5 #include "chrome/browser/shell_dialogs.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/browser.h" | |
16 #include "chrome/browser/browser_list.h" | 15 #include "chrome/browser/browser_list.h" |
17 #include "chrome/browser/browser_thread.h" | 16 #include "chrome/browser/browser_thread.h" |
18 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 17 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
19 #include "chrome/browser/profile_manager.h" | 18 #include "chrome/browser/profile_manager.h" |
20 #include "chrome/browser/shell_dialogs.h" | 19 #include "chrome/browser/shell_dialogs.h" |
21 #include "chrome/browser/tab_contents/tab_contents.h" | 20 #include "chrome/browser/tab_contents/tab_contents.h" |
| 21 #include "chrome/browser/ui/browser.h" |
22 #include "chrome/browser/views/browser_dialogs.h" | 22 #include "chrome/browser/views/browser_dialogs.h" |
23 #include "chrome/browser/views/html_dialog_view.h" | 23 #include "chrome/browser/views/html_dialog_view.h" |
24 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
26 #include "views/window/non_client_view.h" | 26 #include "views/window/non_client_view.h" |
27 #include "views/window/window.h" | 27 #include "views/window/window.h" |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 const char kKeyNamePath[] = "path"; | 31 const char kKeyNamePath[] = "path"; |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 // TODO(xiyuan): Change this when the infrastructure is improved. | 475 // TODO(xiyuan): Change this when the infrastructure is improved. |
476 HtmlDialogUIDelegate** delegate = HtmlDialogUI::GetPropertyAccessor(). | 476 HtmlDialogUIDelegate** delegate = HtmlDialogUI::GetPropertyAccessor(). |
477 GetProperty(dom_ui_->tab_contents()->property_bag()); | 477 GetProperty(dom_ui_->tab_contents()->property_bag()); |
478 HtmlDialogView* containing_view = static_cast<HtmlDialogView*>(*delegate); | 478 HtmlDialogView* containing_view = static_cast<HtmlDialogView*>(*delegate); |
479 DCHECK(containing_view); | 479 DCHECK(containing_view); |
480 | 480 |
481 containing_view->GetWindow()->UpdateWindowTitle(); | 481 containing_view->GetWindow()->UpdateWindowTitle(); |
482 containing_view->GetWindow()->GetNonClientView()->SchedulePaint(); | 482 containing_view->GetWindow()->GetNonClientView()->SchedulePaint(); |
483 } | 483 } |
484 } | 484 } |
OLD | NEW |