| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_COCOA_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" | 11 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" |
| 12 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" | 12 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 class WebContents; | 15 class WebContents; |
| 16 } | 16 } |
| 17 | 17 |
| 18 @class CardUnmaskPromptViewCocoa; | 18 @class CardUnmaskPromptViewCocoa; |
| 19 | 19 |
| 20 namespace autofill { | 20 namespace autofill { |
| 21 | 21 |
| 22 class CardUnmaskPromptController; |
| 23 |
| 22 class CardUnmaskPromptViewBridge : public CardUnmaskPromptView, | 24 class CardUnmaskPromptViewBridge : public CardUnmaskPromptView, |
| 23 public ConstrainedWindowMacDelegate { | 25 public ConstrainedWindowMacDelegate { |
| 24 public: | 26 public: |
| 25 explicit CardUnmaskPromptViewBridge(CardUnmaskPromptController* controller, | 27 explicit CardUnmaskPromptViewBridge(CardUnmaskPromptController* controller, |
| 26 content::WebContents* web_contents); | 28 content::WebContents* web_contents); |
| 27 ~CardUnmaskPromptViewBridge() override; | 29 ~CardUnmaskPromptViewBridge() override; |
| 28 | 30 |
| 29 // CardUnmaskPromptView implementation: | 31 // CardUnmaskPromptView implementation: |
| 30 void Show() override; | 32 void Show() override; |
| 31 void ControllerGone() override; | 33 void ControllerGone() override; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 61 - (id)initWithBridge:(autofill::CardUnmaskPromptViewBridge*)bridge; | 63 - (id)initWithBridge:(autofill::CardUnmaskPromptViewBridge*)bridge; |
| 62 | 64 |
| 63 - (void)setProgressOverlayText:(const base::string16&)text | 65 - (void)setProgressOverlayText:(const base::string16&)text |
| 64 showSpinner:(BOOL)showSpinner; | 66 showSpinner:(BOOL)showSpinner; |
| 65 - (void)setRetriableErrorMessage:(const base::string16&)text; | 67 - (void)setRetriableErrorMessage:(const base::string16&)text; |
| 66 - (void)setPermanentErrorMessage:(const base::string16&)text; | 68 - (void)setPermanentErrorMessage:(const base::string16&)text; |
| 67 | 69 |
| 68 @end | 70 @end |
| 69 | 71 |
| 70 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ | 72 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ |
| OLD | NEW |