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

Side by Side Diff: chrome/browser/ui/views/payments/payment_method_view_controller.cc

Issue 2649683002: [Payments] Improve the closing of the PR dialog. (Closed)
Patch Set: addressed comments from sky Created 3 years, 11 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/payments/payment_method_view_controller.h" 5 #include "chrome/browser/ui/views/payments/payment_method_view_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "chrome/browser/ui/views/payments/payment_request_dialog.h" 12 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h"
13 #include "chrome/browser/ui/views/payments/payment_request_views_util.h" 13 #include "chrome/browser/ui/views/payments/payment_request_views_util.h"
14 #include "components/payments/payment_request.h" 14 #include "components/payments/payment_request.h"
15 #include "components/strings/grit/components_strings.h" 15 #include "components/strings/grit/components_strings.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 17
18 namespace payments { 18 namespace payments {
19 19
20 PaymentMethodViewController::PaymentMethodViewController( 20 PaymentMethodViewController::PaymentMethodViewController(
21 PaymentRequest* request, PaymentRequestDialog* dialog) 21 PaymentRequest* request,
22 : PaymentRequestSheetController(request, dialog) {} 22 PaymentRequestDialogView* dialog)
23 : PaymentRequestSheetController(request, dialog) {}
23 24
24 PaymentMethodViewController::~PaymentMethodViewController() {} 25 PaymentMethodViewController::~PaymentMethodViewController() {}
25 26
26 std::unique_ptr<views::View> PaymentMethodViewController::CreateView() { 27 std::unique_ptr<views::View> PaymentMethodViewController::CreateView() {
27 std::unique_ptr<views::View> content_view = base::MakeUnique<views::View>(); 28 std::unique_ptr<views::View> content_view = base::MakeUnique<views::View>();
28 29
29 // TODO(anthonyvd): populate this view. 30 // TODO(anthonyvd): populate this view.
30 31
31 return CreatePaymentView(CreateSheetHeaderView( 32 return CreatePaymentView(CreateSheetHeaderView(
32 true, 33 true,
(...skipping 11 matching lines...) Expand all
44 break; 45 break;
45 case static_cast<int>(PaymentRequestCommonTags::BACK_BUTTON_TAG): 46 case static_cast<int>(PaymentRequestCommonTags::BACK_BUTTON_TAG):
46 dialog()->GoBack(); 47 dialog()->GoBack();
47 break; 48 break;
48 default: 49 default:
49 NOTREACHED(); 50 NOTREACHED();
50 } 51 }
51 } 52 }
52 53
53 } // namespace payments 54 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698