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 29 matching lines...) Expand all Loading... |
40 base::scoped_nsobject<CardUnmaskPromptViewCocoa> view_controller_; | 40 base::scoped_nsobject<CardUnmaskPromptViewCocoa> view_controller_; |
41 | 41 |
42 // The controller |this| queries for logic and state. | 42 // The controller |this| queries for logic and state. |
43 CardUnmaskPromptController* controller_; | 43 CardUnmaskPromptController* controller_; |
44 }; | 44 }; |
45 | 45 |
46 } // autofill | 46 } // autofill |
47 | 47 |
48 @interface CardUnmaskPromptViewCocoa : NSViewController<NSWindowDelegate> { | 48 @interface CardUnmaskPromptViewCocoa : NSViewController<NSWindowDelegate> { |
49 @private | 49 @private |
50 content::WebContents* webContents_; | |
51 | |
52 // Owns |self|. | 50 // Owns |self|. |
53 autofill::CardUnmaskPromptViewBridge* bridge_; | 51 autofill::CardUnmaskPromptViewBridge* bridge_; |
54 } | 52 } |
55 | 53 |
56 // Designated initializer. |webContents| and |bridge| must not be NULL. | 54 // Designated initializer. |bridge| must not be NULL. |
57 - (id)initWithWebContents:(content::WebContents*)webContents | 55 - (id)initWithBridge:(autofill::CardUnmaskPromptViewBridge*)bridge; |
58 bridge:(autofill::CardUnmaskPromptViewBridge*)bridge; | |
59 | 56 |
60 // Closes the sheet and ends the modal loop. | 57 // Closes the sheet and ends the modal loop. |
61 - (IBAction)closeSheet:(id)sender; | 58 - (IBAction)closeSheet:(id)sender; |
62 | 59 |
63 @end | 60 @end |
64 | 61 |
65 #endif // CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ | 62 #endif // CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ |
OLD | NEW |