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

Side by Side Diff: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h

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 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/payments/chrome_payment_request_delegate.h" 9 #include "chrome/browser/payments/chrome_payment_request_delegate.h"
10 #include "chrome/browser/ui/views/payments/payment_request_dialog.h" 10 #include "chrome/browser/ui/views/payments/payment_request_dialog_view.h"
11 11
12 namespace content { 12 namespace content {
13 class WebContents; 13 class WebContents;
14 } 14 }
15 15
16 namespace views {
17 class WidgetObserver;
18 }
19
16 namespace payments { 20 namespace payments {
17 21
18 class PaymentRequest; 22 class PaymentRequest;
19 23
20 // Implementation of the Payment Request delegate used in tests. 24 // Implementation of the Payment Request delegate used in tests.
21 class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate { 25 class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate {
22 public: 26 public:
23 TestChromePaymentRequestDelegate( 27 TestChromePaymentRequestDelegate(
24 content::WebContents* web_contents, 28 content::WebContents* web_contents,
25 PaymentRequestDialog::ObserverForTest* observer); 29 PaymentRequestDialogView::ObserverForTest* observer,
30 views::WidgetObserver* widget_observer);
26 31
27 void ShowPaymentRequestDialog(PaymentRequest* request) override; 32 void ShowDialog(PaymentRequest* request) override;
28 33
29 private: 34 private:
30 PaymentRequestDialog::ObserverForTest* observer_; 35 PaymentRequestDialogView::ObserverForTest* observer_;
36 views::WidgetObserver* widget_observer_;
31 37
32 DISALLOW_COPY_AND_ASSIGN(TestChromePaymentRequestDelegate); 38 DISALLOW_COPY_AND_ASSIGN(TestChromePaymentRequestDelegate);
33 }; 39 };
34 40
35 } // namespace payments 41 } // namespace payments
36 42
37 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE _H_ 43 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698