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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h

Issue 929293005: Autofill: Add contents of CVC unmask prompt dialog on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cup_01_initial_add
Patch Set: Fix failing browser test by calling test::SetCreditCardInfo. Created 5 years, 9 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 (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 14 matching lines...) Expand all
25 ~CardUnmaskPromptViewBridge() override; 25 ~CardUnmaskPromptViewBridge() override;
26 26
27 // CardUnmaskPromptView implementation: 27 // CardUnmaskPromptView implementation:
28 void ControllerGone() override; 28 void ControllerGone() override;
29 void DisableAndWaitForVerification() override; 29 void DisableAndWaitForVerification() override;
30 void GotVerificationResult(bool success) override; 30 void GotVerificationResult(bool success) override;
31 31
32 // ConstrainedWindowMacDelegate implementation: 32 // ConstrainedWindowMacDelegate implementation:
33 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override; 33 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override;
34 34
35 CardUnmaskPromptController* GetController();
35 void PerformClose(); 36 void PerformClose();
36 37
37 private: 38 private:
38 scoped_ptr<ConstrainedWindowMac> constrained_window_; 39 scoped_ptr<ConstrainedWindowMac> constrained_window_;
39 base::scoped_nsobject<CardUnmaskPromptViewCocoa> sheet_controller_; 40 base::scoped_nsobject<CardUnmaskPromptViewCocoa> view_controller_;
40 41
41 // The controller |this| queries for logic and state. 42 // The controller |this| queries for logic and state.
42 CardUnmaskPromptController* controller_; 43 CardUnmaskPromptController* controller_;
43 }; 44 };
44 45
45 } // autofill 46 } // autofill
46 47
47 @interface CardUnmaskPromptViewCocoa : NSWindowController<NSWindowDelegate> { 48 @interface CardUnmaskPromptViewCocoa : NSViewController<NSWindowDelegate> {
48 @private 49 @private
49 content::WebContents* webContents_; 50 content::WebContents* webContents_;
50 51
51 // Owns |self|. 52 // Owns |self|.
52 autofill::CardUnmaskPromptViewBridge* bridge_; 53 autofill::CardUnmaskPromptViewBridge* bridge_;
53 } 54 }
54 55
55 // Designated initializer. |webContents| and |bridge| must not be NULL. 56 // Designated initializer. |webContents| and |bridge| must not be NULL.
56 - (id)initWithWebContents:(content::WebContents*)webContents 57 - (id)initWithWebContents:(content::WebContents*)webContents
57 bridge:(autofill::CardUnmaskPromptViewBridge*)bridge; 58 bridge:(autofill::CardUnmaskPromptViewBridge*)bridge;
58 59
59 // Closes the sheet and ends the modal loop. 60 // Closes the sheet and ends the modal loop.
60 - (IBAction)closeSheet:(id)sender; 61 - (IBAction)closeSheet:(id)sender;
61 62
62 @end 63 @end
63 64
64 #endif // CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_ 65 #endif // CHROME_BROWSER_UI_COCOA_CARD_UNMASK_PROMPT_VIEW_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698