| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INFOBARS_MOCK_CONFIRM_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_CONFIRM_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_CONFIRM_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_CONFIRM_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "components/infobars/core/confirm_infobar_delegate.h" | 11 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 12 | 12 |
| 13 class MockConfirmInfoBarDelegate : public ConfirmInfoBarDelegate { | 13 class MockConfirmInfoBarDelegate : public ConfirmInfoBarDelegate { |
| 14 public: | 14 public: |
| 15 // Called when the dtor of |this| has been entered. | 15 // Called when the dtor of |this| has been entered. |
| 16 class Owner { | 16 class Owner { |
| 17 public: | 17 public: |
| 18 virtual void OnInfoBarDelegateClosed( | 18 virtual void OnInfoBarDelegateClosed( |
| 19 MockConfirmInfoBarDelegate* delegate) = 0; | 19 MockConfirmInfoBarDelegate* delegate) = 0; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 mutable bool message_text_accessed_; | 52 mutable bool message_text_accessed_; |
| 53 mutable bool link_text_accessed_; | 53 mutable bool link_text_accessed_; |
| 54 bool ok_clicked_; | 54 bool ok_clicked_; |
| 55 bool cancel_clicked_; | 55 bool cancel_clicked_; |
| 56 bool link_clicked_; | 56 bool link_clicked_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(MockConfirmInfoBarDelegate); | 58 DISALLOW_COPY_AND_ASSIGN(MockConfirmInfoBarDelegate); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_CONFIRM_INFOBAR_DELEGATE_H_ | 61 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_CONFIRM_INFOBAR_DELEGATE_H_ |
| OLD | NEW |