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

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

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 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/utf_string_conversions.h" 7 #include "base/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 "chrome/browser/ui/web_contents_modal_dialog_manager.h" 9 #include "components/web_modal/web_contents_modal_dialog_manager.h"
10 #include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h" 10 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "content/public/browser/web_contents_view.h" 12 #include "content/public/browser/web_contents_view.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "grit/locale_settings.h" 14 #include "grit/locale_settings.h"
15 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
18 #include "ui/native_theme/native_theme.h" 18 #include "ui/native_theme/native_theme.h"
19 #include "ui/views/controls/button/checkbox.h" 19 #include "ui/views/controls/button/checkbox.h"
20 #include "ui/views/controls/button/label_button.h" 20 #include "ui/views/controls/button/label_button.h"
21 #include "ui/views/controls/label.h" 21 #include "ui/views/controls/label.h"
22 #include "ui/views/controls/scroll_view.h" 22 #include "ui/views/controls/scroll_view.h"
23 #include "ui/views/controls/separator.h" 23 #include "ui/views/controls/separator.h"
24 #include "ui/views/layout/box_layout.h" 24 #include "ui/views/layout/box_layout.h"
25 #include "ui/views/layout/grid_layout.h" 25 #include "ui/views/layout/grid_layout.h"
26 #include "ui/views/layout/layout_constants.h" 26 #include "ui/views/layout/layout_constants.h"
27 #include "ui/views/view.h" 27 #include "ui/views/view.h"
28 #include "ui/views/widget/widget.h" 28 #include "ui/views/widget/widget.h"
29 #include "ui/views/window/dialog_client_view.h" 29 #include "ui/views/window/dialog_client_view.h"
30 30
31 using web_modal::WebContentsModalDialogManager;
32
31 namespace { 33 namespace {
32 34
33 // Equal to the #969696 color used in spec (note WebUI color is #999). 35 // Equal to the #969696 color used in spec (note WebUI color is #999).
34 const SkColor kDeemphasizedTextColor = SkColorSetRGB(159, 159, 159); 36 const SkColor kDeemphasizedTextColor = SkColorSetRGB(159, 159, 159);
35 37
36 const int kScrollAreaHeight = 192; 38 const int kScrollAreaHeight = 192;
37 39
38 // This container has the right Layout() impl to use within a ScrollView. 40 // This container has the right Layout() impl to use within a ScrollView.
39 class ScrollableView : public views::View { 41 class ScrollableView : public views::View {
40 public: 42 public:
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 370
369 // MediaGalleriesDialogViewsController ----------------------------------------- 371 // MediaGalleriesDialogViewsController -----------------------------------------
370 372
371 // static 373 // static
372 MediaGalleriesDialog* MediaGalleriesDialog::Create( 374 MediaGalleriesDialog* MediaGalleriesDialog::Create(
373 MediaGalleriesDialogController* controller) { 375 MediaGalleriesDialogController* controller) {
374 return new MediaGalleriesDialogViews(controller); 376 return new MediaGalleriesDialogViews(controller);
375 } 377 }
376 378
377 } // namespace chrome 379 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698