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

Side by Side Diff: chrome/browser/ui/views/ime/ime_warning_bubble_view.cc

Issue 2922263002: Fix style of profile error dialog. (Closed)
Patch Set: tapted's and pkasting's comments Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/views/ime/ime_warning_bubble_view.h" 5 #include "chrome/browser/ui/views/ime/ime_warning_bubble_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h" 10 #include "chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 return true; 60 return true;
61 } 61 }
62 62
63 bool ImeWarningBubbleView::Cancel() { 63 bool ImeWarningBubbleView::Cancel() {
64 if (!response_callback_.is_null()) 64 if (!response_callback_.is_null())
65 base::ResetAndReturn(&response_callback_) 65 base::ResetAndReturn(&response_callback_)
66 .Run(ImeWarningBubblePermissionStatus::DENIED); 66 .Run(ImeWarningBubblePermissionStatus::DENIED);
67 return true; 67 return true;
68 } 68 }
69 69
70 bool ImeWarningBubbleView::ShouldDefaultButtonBeBlue() const {
71 return true;
72 }
73
74 void ImeWarningBubbleView::OnToolbarActionsBarAnimationEnded() { 70 void ImeWarningBubbleView::OnToolbarActionsBarAnimationEnded() {
75 if (!bubble_has_shown_) { 71 if (!bubble_has_shown_) {
76 views::BubbleDialogDelegateView::CreateBubble(this)->Show(); 72 views::BubbleDialogDelegateView::CreateBubble(this)->Show();
77 bubble_has_shown_ = true; 73 bubble_has_shown_ = true;
78 } 74 }
79 } 75 }
80 76
81 void ImeWarningBubbleView::OnBrowserRemoved(Browser* browser) { 77 void ImeWarningBubbleView::OnBrowserRemoved(Browser* browser) {
82 // |browser_| is being destroyed before the bubble is successfully shown. 78 // |browser_| is being destroyed before the bubble is successfully shown.
83 if ((browser_ == browser) && !bubble_has_shown_) 79 if ((browser_ == browser) && !bubble_has_shown_)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // The seconde row which shows the check box. 183 // The seconde row which shows the check box.
188 layout->StartRow(0, cs_id); 184 layout->StartRow(0, cs_id);
189 never_show_checkbox_ = 185 never_show_checkbox_ =
190 new views::Checkbox(l10n_util::GetStringUTF16(IDS_IME_API_NEVER_SHOW)); 186 new views::Checkbox(l10n_util::GetStringUTF16(IDS_IME_API_NEVER_SHOW));
191 layout->AddView(never_show_checkbox_); 187 layout->AddView(never_show_checkbox_);
192 } 188 }
193 189
194 bool ImeWarningBubbleView::IsToolbarAnimating() { 190 bool ImeWarningBubbleView::IsToolbarAnimating() {
195 return anchor_to_action_ && container_->animating(); 191 return anchor_to_action_ && container_->animating();
196 } 192 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ime/ime_warning_bubble_view.h ('k') | chrome/browser/ui/views/passwords/account_chooser_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698