Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698