OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "chrome/browser/tab_contents/infobar_delegate.h" | 10 #include "chrome/browser/tab_contents/infobar_delegate.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 virtual bool Accept(); | 32 virtual bool Accept(); |
33 virtual bool Cancel(); | 33 virtual bool Cancel(); |
34 virtual string16 GetLinkText(); | 34 virtual string16 GetLinkText(); |
35 virtual bool LinkClicked(WindowOpenDisposition disposition); | 35 virtual bool LinkClicked(WindowOpenDisposition disposition); |
36 | 36 |
37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
38 // Overridden from InfoBarDelegate: | 38 // Overridden from InfoBarDelegate: |
39 virtual InfoBar* CreateInfoBar(); | 39 virtual InfoBar* CreateInfoBar(); |
40 #endif // defined(OS_WIN) | 40 #endif // defined(OS_WIN) |
41 | 41 |
42 virtual Type GetInfoBarType() { | 42 virtual Type GetInfoBarType(); |
43 return PAGE_ACTION_TYPE; | |
44 } | |
45 | 43 |
46 private: | 44 private: |
47 // The AutoFillManager that initiated this InfoBar. | 45 // The AutoFillManager that initiated this InfoBar. |
48 AutoFillManager* host_; | 46 AutoFillManager* host_; |
49 | 47 |
50 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); | 48 DISALLOW_COPY_AND_ASSIGN(AutoFillCCInfoBarDelegate); |
51 }; | 49 }; |
52 | 50 |
53 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ | 51 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ |
OLD | NEW |