| 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_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ |
| 7 | 7 |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/autofill/card_unmask_prompt_view.h" | 10 #include "chrome/browser/ui/autofill/card_unmask_prompt_view.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } // autofill | 49 } // autofill |
| 50 | 50 |
| 51 @interface CardUnmaskPromptViewCocoa | 51 @interface CardUnmaskPromptViewCocoa |
| 52 : NSViewController<NSWindowDelegate, NSTextFieldDelegate> | 52 : NSViewController<NSWindowDelegate, NSTextFieldDelegate> |
| 53 | 53 |
| 54 // Designated initializer. |bridge| must not be NULL. | 54 // Designated initializer. |bridge| must not be NULL. |
| 55 - (id)initWithBridge:(autofill::CardUnmaskPromptViewBridge*)bridge; | 55 - (id)initWithBridge:(autofill::CardUnmaskPromptViewBridge*)bridge; |
| 56 | 56 |
| 57 - (void)setProgressOverlayText:(const base::string16&)text; | 57 - (void)setProgressOverlayText:(const base::string16&)text; |
| 58 - (void)setRetriableErrorMessage:(const base::string16&)text; | 58 - (void)setRetriableErrorMessage:(const base::string16&)text; |
| 59 - (void)setPermanentErrorMessage:(const base::string16&)text; |
| 60 |
| 61 // Layout the dialog and redisplay it. |
| 62 - (void)performLayout; |
| 59 | 63 |
| 60 @end | 64 @end |
| 61 | 65 |
| 62 #endif // CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ | 66 #endif // CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ |
| OLD | NEW |