| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 CardUnmaskPromptController* GetController(); | 36 CardUnmaskPromptController* GetController(); |
| 37 void PerformClose(); | 37 void PerformClose(); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 scoped_ptr<ConstrainedWindowMac> constrained_window_; | 40 scoped_ptr<ConstrainedWindowMac> constrained_window_; |
| 41 base::scoped_nsobject<CardUnmaskPromptViewCocoa> view_controller_; | 41 base::scoped_nsobject<CardUnmaskPromptViewCocoa> view_controller_; |
| 42 | 42 |
| 43 // The controller |this| queries for logic and state. | 43 // The controller |this| queries for logic and state. |
| 44 CardUnmaskPromptController* controller_; | 44 CardUnmaskPromptController* controller_; |
| 45 |
| 46 base::WeakPtrFactory<CardUnmaskPromptViewBridge> weak_ptr_factory_; |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 } // autofill | 49 } // autofill |
| 48 | 50 |
| 49 @interface CardUnmaskPromptViewCocoa | 51 @interface CardUnmaskPromptViewCocoa |
| 50 : NSViewController<NSWindowDelegate, NSTextFieldDelegate> | 52 : NSViewController<NSWindowDelegate, NSTextFieldDelegate> |
| 51 | 53 |
| 52 // Designated initializer. |bridge| must not be NULL. | 54 // Designated initializer. |bridge| must not be NULL. |
| 53 - (id)initWithBridge:(autofill::CardUnmaskPromptViewBridge*)bridge; | 55 - (id)initWithBridge:(autofill::CardUnmaskPromptViewBridge*)bridge; |
| 54 | 56 |
| 55 - (void)setInputsEnabled:(BOOL)enabled; | 57 - (void)setProgressOverlayText:(const base::string16&)text; |
| 56 - (void)updateVerifyButtonEnabled; | |
| 57 | 58 |
| 58 @end | 59 @end |
| 59 | 60 |
| 60 #endif // CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ | 61 #endif // CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ |
| OLD | NEW |