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_list.h" | 15 #include "chrome/browser/browser_list.h" |
16 #include "chrome/browser/browser_thread.h" | 16 #include "chrome/browser/browser_thread.h" |
17 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 17 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
18 #include "chrome/browser/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
19 #include "chrome/browser/shell_dialogs.h" | 19 #include "chrome/browser/shell_dialogs.h" |
20 #include "chrome/browser/tab_contents/tab_contents.h" | 20 #include "chrome/browser/tab_contents/tab_contents.h" |
21 #include "chrome/browser/ui/browser.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 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 // TODO(xiyuan): Change this when the infrastructure is improved. | 478 // TODO(xiyuan): Change this when the infrastructure is improved. |
479 HtmlDialogUIDelegate** delegate = HtmlDialogUI::GetPropertyAccessor(). | 479 HtmlDialogUIDelegate** delegate = HtmlDialogUI::GetPropertyAccessor(). |
480 GetProperty(dom_ui_->tab_contents()->property_bag()); | 480 GetProperty(dom_ui_->tab_contents()->property_bag()); |
481 HtmlDialogView* containing_view = static_cast<HtmlDialogView*>(*delegate); | 481 HtmlDialogView* containing_view = static_cast<HtmlDialogView*>(*delegate); |
482 DCHECK(containing_view); | 482 DCHECK(containing_view); |
483 | 483 |
484 containing_view->GetWindow()->UpdateWindowTitle(); | 484 containing_view->GetWindow()->UpdateWindowTitle(); |
485 containing_view->GetWindow()->GetNonClientView()->SchedulePaint(); | 485 containing_view->GetWindow()->GetNonClientView()->SchedulePaint(); |
486 } | 486 } |
487 } | 487 } |
OLD | NEW |