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

Side by Side Diff: chrome/browser/ui/views/download/download_danger_prompt_views.cc

Issue 658383003: Componentize Constrained Window Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "chrome/browser/download/download_danger_prompt.h" 6 #include "chrome/browser/download/download_danger_prompt.h"
7 #include "chrome/browser/download/download_stats.h" 7 #include "chrome/browser/download/download_stats.h"
8 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s ampling.h" 8 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s ampling.h"
9 #include "chrome/browser/ui/views/constrained_window_views.h"
10 #include "chrome/grit/chromium_strings.h" 9 #include "chrome/grit/chromium_strings.h"
11 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
11 #include "components/constrained_window/constrained_window_views.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/browser/download_danger_type.h" 13 #include "content/public/browser/download_danger_type.h"
14 #include "content/public/browser/download_item.h" 14 #include "content/public/browser/download_item.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
17 #include "ui/views/controls/button/label_button.h" 17 #include "ui/views/controls/button/label_button.h"
18 #include "ui/views/controls/label.h" 18 #include "ui/views/controls/label.h"
19 #include "ui/views/layout/grid_layout.h" 19 #include "ui/views/layout/grid_layout.h"
20 #include "ui/views/view.h" 20 #include "ui/views/view.h"
21 #include "ui/views/widget/widget.h" 21 #include "ui/views/widget/widget.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 DownloadDangerPrompt* DownloadDangerPrompt::Create( 346 DownloadDangerPrompt* DownloadDangerPrompt::Create(
347 content::DownloadItem* item, 347 content::DownloadItem* item,
348 content::WebContents* web_contents, 348 content::WebContents* web_contents,
349 bool show_context, 349 bool show_context,
350 const OnDone& done) { 350 const OnDone& done) {
351 DownloadDangerPromptViews* download_danger_prompt = 351 DownloadDangerPromptViews* download_danger_prompt =
352 new DownloadDangerPromptViews(item, show_context, done); 352 new DownloadDangerPromptViews(item, show_context, done);
353 ShowWebModalDialogViews(download_danger_prompt, web_contents); 353 ShowWebModalDialogViews(download_danger_prompt, web_contents);
354 return download_danger_prompt; 354 return download_danger_prompt;
355 } 355 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698