| 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/gtk/extensions/media_galleries_dialog_gtk.h" | 5 #include "chrome/browser/ui/gtk/extensions/media_galleries_dialog_gtk.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 9 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
| 10 #include "chrome/browser/ui/gtk/gtk_util.h" | 10 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 11 #include "chrome/browser/ui/web_contents_modal_dialog_manager.h" | 11 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 13 #include "ui/base/gtk/gtk_hig_constants.h" | 13 #include "ui/base/gtk/gtk_hig_constants.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 15 | 15 |
| 16 using web_modal::WebContentsModalDialogManager; |
| 17 |
| 16 namespace chrome { | 18 namespace chrome { |
| 17 | 19 |
| 18 namespace { | 20 namespace { |
| 19 | 21 |
| 20 // Color used for additional attachment detail text for galleries. | 22 // Color used for additional attachment detail text for galleries. |
| 21 const GdkColor kDeemphasizedTextColor = GDK_COLOR_RGB(0x96, 0x96, 0x96); | 23 const GdkColor kDeemphasizedTextColor = GDK_COLOR_RGB(0x96, 0x96, 0x96); |
| 22 | 24 |
| 23 // Width and height of the scrollable area in which galleries are shown. | 25 // Width and height of the scrollable area in which galleries are shown. |
| 24 const int kGalleryControlScrollableWidth = 280; | 26 const int kGalleryControlScrollableWidth = 280; |
| 25 const int kGalleryControlScrollableHeight = 192; | 27 const int kGalleryControlScrollableHeight = 192; |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 249 |
| 248 // MediaGalleriesDialogController ---------------------------------------------- | 250 // MediaGalleriesDialogController ---------------------------------------------- |
| 249 | 251 |
| 250 // static | 252 // static |
| 251 MediaGalleriesDialog* MediaGalleriesDialog::Create( | 253 MediaGalleriesDialog* MediaGalleriesDialog::Create( |
| 252 MediaGalleriesDialogController* controller) { | 254 MediaGalleriesDialogController* controller) { |
| 253 return new MediaGalleriesDialogGtk(controller); | 255 return new MediaGalleriesDialogGtk(controller); |
| 254 } | 256 } |
| 255 | 257 |
| 256 } // namespace chrome | 258 } // namespace chrome |
| OLD | NEW |