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

Side by Side Diff: chrome/browser/ui/views/select_file_dialog.cc

Issue 6532069: Reland "WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 5." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 (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/shell_dialogs.h" 5 #include "chrome/browser/ui/shell_dialogs.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/sys_string_conversions.h" 12 #include "base/sys_string_conversions.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"
18 #include "chrome/browser/profiles/profile_manager.h" 17 #include "chrome/browser/profiles/profile_manager.h"
19 #include "chrome/browser/tab_contents/tab_contents.h" 18 #include "chrome/browser/tab_contents/tab_contents.h"
20 #include "chrome/browser/ui/browser.h" 19 #include "chrome/browser/ui/browser.h"
21 #include "chrome/browser/ui/browser_dialogs.h" 20 #include "chrome/browser/ui/browser_dialogs.h"
22 #include "chrome/browser/ui/views/html_dialog_view.h" 21 #include "chrome/browser/ui/views/html_dialog_view.h"
22 #include "chrome/browser/webui/html_dialog_ui.h"
23 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
24 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.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";
32 const int kSaveCompletePageIndex = 2; 32 const int kSaveCompletePageIndex = 2;
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 // TODO(xiyuan): Change this when the infrastructure is improved. 487 // TODO(xiyuan): Change this when the infrastructure is improved.
488 HtmlDialogUIDelegate** delegate = HtmlDialogUI::GetPropertyAccessor(). 488 HtmlDialogUIDelegate** delegate = HtmlDialogUI::GetPropertyAccessor().
489 GetProperty(web_ui_->tab_contents()->property_bag()); 489 GetProperty(web_ui_->tab_contents()->property_bag());
490 HtmlDialogView* containing_view = static_cast<HtmlDialogView*>(*delegate); 490 HtmlDialogView* containing_view = static_cast<HtmlDialogView*>(*delegate);
491 DCHECK(containing_view); 491 DCHECK(containing_view);
492 492
493 containing_view->GetWindow()->UpdateWindowTitle(); 493 containing_view->GetWindow()->UpdateWindowTitle();
494 containing_view->GetWindow()->GetNonClientView()->SchedulePaint(); 494 containing_view->GetWindow()->GetNonClientView()->SchedulePaint();
495 } 495 }
496 } 496 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/keyboard_overlay_delegate.cc ('k') | chrome/browser/webui/app_launcher_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698