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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.cc

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/cocoa/infobars/mock_confirm_infobar_delegate.h" 5 #include "chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 8
9 const char MockConfirmInfoBarDelegate::kMessage[] = "MockConfirmInfoBarMessage"; 9 const char MockConfirmInfoBarDelegate::kMessage[] = "MockConfirmInfoBarMessage";
10 10
11 MockConfirmInfoBarDelegate::MockConfirmInfoBarDelegate(Owner* owner) 11 MockConfirmInfoBarDelegate::MockConfirmInfoBarDelegate(Owner* owner)
12 : ConfirmInfoBarDelegate(NULL), 12 : ConfirmInfoBarDelegate(),
13 owner_(owner), 13 owner_(owner),
14 closes_on_action_(true), 14 closes_on_action_(true),
15 icon_accessed_(false), 15 icon_accessed_(false),
16 message_text_accessed_(false), 16 message_text_accessed_(false),
17 link_text_accessed_(false), 17 link_text_accessed_(false),
18 ok_clicked_(false), 18 ok_clicked_(false),
19 cancel_clicked_(false), 19 cancel_clicked_(false),
20 link_clicked_(false) { 20 link_clicked_(false) {
21 } 21 }
22 22
(...skipping 30 matching lines...) Expand all
53 string16 MockConfirmInfoBarDelegate::GetLinkText() const { 53 string16 MockConfirmInfoBarDelegate::GetLinkText() const {
54 link_text_accessed_ = true; 54 link_text_accessed_ = true;
55 return string16(); 55 return string16();
56 } 56 }
57 57
58 bool MockConfirmInfoBarDelegate::LinkClicked( 58 bool MockConfirmInfoBarDelegate::LinkClicked(
59 WindowOpenDisposition disposition) { 59 WindowOpenDisposition disposition) {
60 link_clicked_ = true; 60 link_clicked_ = true;
61 return closes_on_action_; 61 return closes_on_action_;
62 } 62 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_controller.mm ('k') | chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698