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

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

Issue 1014683007: Autofill OSX: Add "Verifying card" / "Your card is verified" status overlay. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698