OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/extensions/api/file_system/request_file_system_dialog_v
iew.h" | 5 #include "chrome/browser/extensions/api/file_system/request_file_system_dialog_v
iew.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cstdlib> | 9 #include <cstdlib> |
10 | 10 |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
14 #include "components/constrained_window/constrained_window_views.h" | 14 #include "components/constrained_window/constrained_window_views.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 #include "ui/gfx/font.h" | 17 #include "ui/gfx/font.h" |
18 #include "ui/gfx/range/range.h" | 18 #include "ui/gfx/range/range.h" |
19 #include "ui/views/controls/styled_label.h" | 19 #include "ui/views/controls/styled_label.h" |
20 #include "ui/views/layout/box_layout.h" | 20 #include "ui/views/layout/box_layout.h" |
21 #include "ui/views/layout/layout_constants.h" | 21 #include "ui/views/layout/layout_constants.h" |
22 | 22 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 bold_style); | 133 bold_style); |
134 | 134 |
135 views::BoxLayout* const layout = new views::BoxLayout( | 135 views::BoxLayout* const layout = new views::BoxLayout( |
136 views::BoxLayout::kHorizontal, views::kButtonHEdgeMarginNew, | 136 views::BoxLayout::kHorizontal, views::kButtonHEdgeMarginNew, |
137 views::kPanelVertMargin, 0); | 137 views::kPanelVertMargin, 0); |
138 contents_view_->SetLayoutManager(layout); | 138 contents_view_->SetLayoutManager(layout); |
139 | 139 |
140 label->SizeToFit(kDialogMaxWidth - 2 * views::kButtonHEdgeMarginNew); | 140 label->SizeToFit(kDialogMaxWidth - 2 * views::kButtonHEdgeMarginNew); |
141 contents_view_->AddChildView(label); | 141 contents_view_->AddChildView(label); |
142 } | 142 } |
OLD | NEW |