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

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

Issue 969223002: Autofill wallet -- handle several classes of error in unmasking prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: local 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 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h" 5 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h"
6 #include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h" 6 #include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h"
7 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" 7 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h"
8 #include "chrome/browser/ui/chrome_style.h" 8 #include "chrome/browser/ui/chrome_style.h"
9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh eet.h" 9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh eet.h"
10 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi ndow.h" 10 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi ndow.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 CardUnmaskPromptViewBridge::~CardUnmaskPromptViewBridge() { 43 CardUnmaskPromptViewBridge::~CardUnmaskPromptViewBridge() {
44 } 44 }
45 45
46 void CardUnmaskPromptViewBridge::ControllerGone() { 46 void CardUnmaskPromptViewBridge::ControllerGone() {
47 } 47 }
48 48
49 void CardUnmaskPromptViewBridge::DisableAndWaitForVerification() { 49 void CardUnmaskPromptViewBridge::DisableAndWaitForVerification() {
50 } 50 }
51 51
52 void CardUnmaskPromptViewBridge::GotVerificationResult(bool success) { 52 void CardUnmaskPromptViewBridge::GotVerificationResult(
53 const base::string16& error_message,
54 bool allow_retry) {
53 } 55 }
54 56
55 void CardUnmaskPromptViewBridge::OnConstrainedWindowClosed( 57 void CardUnmaskPromptViewBridge::OnConstrainedWindowClosed(
56 ConstrainedWindowMac* window) { 58 ConstrainedWindowMac* window) {
57 constrained_window_.reset(); 59 constrained_window_.reset();
58 controller_->OnUnmaskDialogClosed(); 60 controller_->OnUnmaskDialogClosed();
59 } 61 }
60 62
61 void CardUnmaskPromptViewBridge::PerformClose() { 63 void CardUnmaskPromptViewBridge::PerformClose() {
62 constrained_window_->CloseWebContentsModalDialog(); 64 constrained_window_->CloseWebContentsModalDialog();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 chrome_style::kHorizontalPadding - 119 chrome_style::kHorizontalPadding -
118 NSMaxX([button frame]); 120 NSMaxX([button frame]);
119 [buttonContainer 121 [buttonContainer
120 setFrame:NSMakeRect(dialogOffset, chrome_style::kClientBottomPadding, 122 setFrame:NSMakeRect(dialogOffset, chrome_style::kClientBottomPadding,
121 NSMaxX([button frame]), NSMaxY([button frame]))]; 123 NSMaxX([button frame]), NSMaxY([button frame]))];
122 124
123 [[[self window] contentView] addSubview:buttonContainer]; 125 [[[self window] contentView] addSubview:buttonContainer];
124 } 126 }
125 127
126 @end 128 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698