| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/media_galleries_dialog_views.h" | 5 #include "chrome/browser/ui/views/extensions/media_galleries_dialog_views.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/views/constrained_window_views.h" | 7 #include "chrome/browser/ui/views/constrained_window_views.h" |
| 8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
| 9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
| 10 #include "ui/views/controls/button/checkbox.h" | 10 #include "ui/views/controls/button/checkbox.h" |
| 11 #include "ui/views/controls/button/text_button.h" | 11 #include "ui/views/controls/button/text_button.h" |
| 12 #include "ui/views/controls/label.h" | 12 #include "ui/views/controls/label.h" |
| 13 #include "ui/views/layout/box_layout.h" | 13 #include "ui/views/layout/box_layout.h" |
| 14 #include "ui/views/layout/grid_layout.h" | 14 #include "ui/views/layout/grid_layout.h" |
| 15 #include "ui/views/layout/layout_constants.h" | 15 #include "ui/views/layout/layout_constants.h" |
| 16 #include "ui/views/view.h" | 16 #include "ui/views/view.h" |
| 17 | 17 |
| 18 namespace chrome { | 18 namespace chrome { |
| 19 | 19 |
| 20 typedef MediaGalleriesDialogController::KnownGalleryPermissions | 20 typedef MediaGalleriesDialogController::KnownGalleryPermissions |
| 21 GalleryPermissions; | 21 GalleryPermissions; |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // Heading font size correction. | 25 // Heading font size correction. |
| 26 #if defined(CROS_FONTS_USING_BCI) | |
| 27 const int kHeadingFontSizeDelta = 0; | |
| 28 #else | |
| 29 const int kHeadingFontSizeDelta = 1; | 26 const int kHeadingFontSizeDelta = 1; |
| 30 #endif | |
| 31 | 27 |
| 32 const int kContentWidth = 450; | 28 const int kContentWidth = 450; |
| 33 | 29 |
| 34 } // namespace | 30 } // namespace |
| 35 | 31 |
| 36 MediaGalleriesDialogViews::MediaGalleriesDialogViews( | 32 MediaGalleriesDialogViews::MediaGalleriesDialogViews( |
| 37 MediaGalleriesDialogController* controller) | 33 MediaGalleriesDialogController* controller) |
| 38 : controller_(controller), | 34 : controller_(controller), |
| 39 window_(NULL), | 35 window_(NULL), |
| 40 contents_(new views::View()), | 36 contents_(new views::View()), |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 193 |
| 198 // MediaGalleriesDialogViewsController ----------------------------------------- | 194 // MediaGalleriesDialogViewsController ----------------------------------------- |
| 199 | 195 |
| 200 // static | 196 // static |
| 201 MediaGalleriesDialog* MediaGalleriesDialog::Create( | 197 MediaGalleriesDialog* MediaGalleriesDialog::Create( |
| 202 MediaGalleriesDialogController* controller) { | 198 MediaGalleriesDialogController* controller) { |
| 203 return new MediaGalleriesDialogViews(controller); | 199 return new MediaGalleriesDialogViews(controller); |
| 204 } | 200 } |
| 205 | 201 |
| 206 } // namespace chrome | 202 } // namespace chrome |
| OLD | NEW |