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 "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/ui/views/constrained_window_views.h" | 8 #include "chrome/browser/ui/views/constrained_window_views.h" |
9 #include "components/web_modal/web_contents_modal_dialog_host.h" | 9 #include "components/web_modal/web_contents_modal_dialog_host.h" |
10 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 10 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 width = std::max(parent()->width(), width); | 59 width = std::max(parent()->width(), width); |
60 height = std::max(parent()->height(), height); | 60 height = std::max(parent()->height(), height); |
61 } | 61 } |
62 SetBounds(x(), y(), width, height); | 62 SetBounds(x(), y(), width, height); |
63 | 63 |
64 views::View::Layout(); | 64 views::View::Layout(); |
65 } | 65 } |
66 | 66 |
67 } // namespace | 67 } // namespace |
68 | 68 |
69 namespace chrome { | |
70 | |
71 typedef MediaGalleriesDialogController::GalleryPermissionsVector | 69 typedef MediaGalleriesDialogController::GalleryPermissionsVector |
72 GalleryPermissionsVector; | 70 GalleryPermissionsVector; |
73 | 71 |
74 MediaGalleriesDialogViews::MediaGalleriesDialogViews( | 72 MediaGalleriesDialogViews::MediaGalleriesDialogViews( |
75 MediaGalleriesDialogController* controller) | 73 MediaGalleriesDialogController* controller) |
76 : controller_(controller), | 74 : controller_(controller), |
77 window_(NULL), | 75 window_(NULL), |
78 contents_(new views::View()), | 76 contents_(new views::View()), |
79 add_gallery_button_(NULL), | 77 add_gallery_button_(NULL), |
80 confirm_available_(false), | 78 confirm_available_(false), |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 } | 359 } |
362 } | 360 } |
363 | 361 |
364 // MediaGalleriesDialogViewsController ----------------------------------------- | 362 // MediaGalleriesDialogViewsController ----------------------------------------- |
365 | 363 |
366 // static | 364 // static |
367 MediaGalleriesDialog* MediaGalleriesDialog::Create( | 365 MediaGalleriesDialog* MediaGalleriesDialog::Create( |
368 MediaGalleriesDialogController* controller) { | 366 MediaGalleriesDialogController* controller) { |
369 return new MediaGalleriesDialogViews(controller); | 367 return new MediaGalleriesDialogViews(controller); |
370 } | 368 } |
371 | |
372 } // namespace chrome | |
OLD | NEW |