OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/test/test_confirm_bubble_model.h" | 5 #include "chrome/browser/ui/test/test_confirm_bubble_model.h" |
6 | 6 |
7 #include "base/string16.h" | 7 #include "base/string16.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
11 | 11 |
12 TestConfirmBubbleModel::TestConfirmBubbleModel(bool* model_deleted, | 12 TestConfirmBubbleModel::TestConfirmBubbleModel(bool* model_deleted, |
13 bool* accept_clicked, | 13 bool* accept_clicked, |
14 bool* cancel_clicked, | 14 bool* cancel_clicked, |
15 bool* link_clicked) | 15 bool* link_clicked) |
16 : model_deleted_(model_deleted), | 16 : model_deleted_(model_deleted), |
17 accept_clicked_(accept_clicked), | 17 accept_clicked_(accept_clicked), |
18 cancel_clicked_(cancel_clicked), | 18 cancel_clicked_(cancel_clicked), |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 string16 TestConfirmBubbleModel::GetLinkText() const { | 59 string16 TestConfirmBubbleModel::GetLinkText() const { |
60 return ASCIIToUTF16("Link"); | 60 return ASCIIToUTF16("Link"); |
61 } | 61 } |
62 | 62 |
63 void TestConfirmBubbleModel::LinkClicked() { | 63 void TestConfirmBubbleModel::LinkClicked() { |
64 if (link_clicked_) | 64 if (link_clicked_) |
65 *link_clicked_ = true; | 65 *link_clicked_ = true; |
66 } | 66 } |
OLD | NEW |