OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/apps/app_info_dialog/app_info_panel.h" | 5 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" |
6 | 6 |
7 #include "chrome/browser/ui/browser_navigator.h" | 7 #include "chrome/browser/ui/browser_navigator.h" |
| 8 #include "chrome/browser/ui/browser_navigator_params.h" |
8 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
9 #include "ui/views/controls/label.h" | 10 #include "ui/views/controls/label.h" |
10 #include "ui/views/layout/box_layout.h" | 11 #include "ui/views/layout/box_layout.h" |
11 #include "ui/views/layout/layout_constants.h" | 12 #include "ui/views/layout/layout_constants.h" |
12 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
13 #include "url/gurl.h" | 14 #include "url/gurl.h" |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 // The spacing between the key and the value labels in the Details section. | 18 // The spacing between the key and the value labels in the Details section. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 63 } |
63 | 64 |
64 views::View* AppInfoPanel::CreateKeyValueField(views::View* key, | 65 views::View* AppInfoPanel::CreateKeyValueField(views::View* key, |
65 views::View* value) const { | 66 views::View* value) const { |
66 views::View* horizontal_stack = | 67 views::View* horizontal_stack = |
67 CreateHorizontalStack(kSpacingBetweenKeyAndStartOfValue); | 68 CreateHorizontalStack(kSpacingBetweenKeyAndStartOfValue); |
68 horizontal_stack->AddChildView(key); | 69 horizontal_stack->AddChildView(key); |
69 horizontal_stack->AddChildView(value); | 70 horizontal_stack->AddChildView(value); |
70 return horizontal_stack; | 71 return horizontal_stack; |
71 } | 72 } |
OLD | NEW |