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

Side by Side Diff: chrome/browser/api/infobars/link_infobar_delegate.h

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
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_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_API_INFOBARS_LINK_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_API_INFOBARS_LINK_INFOBAR_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/infobars/infobar_delegate.h" 11 #include "chrome/browser/api/infobars/infobar_delegate.h"
12 12
13 class InfoBarTabHelper; 13 class InfoBarTabHelper;
14 14
15 // An interface derived from InfoBarDelegate implemented by objects wishing to 15 // An interface derived from InfoBarDelegate implemented by objects wishing to
16 // control a LinkInfoBar. 16 // control a LinkInfoBar.
17 class LinkInfoBarDelegate : public InfoBarDelegate { 17 class LinkInfoBarDelegate : public InfoBarDelegate {
18 public: 18 public:
19 // Returns the message string to be displayed in the InfoBar. |link_offset| 19 // Returns the message string to be displayed in the InfoBar. |link_offset|
20 // is the position where the link should be inserted. 20 // is the position where the link should be inserted.
21 virtual string16 GetMessageTextWithOffset(size_t* link_offset) const = 0; 21 virtual string16 GetMessageTextWithOffset(size_t* link_offset) const = 0;
(...skipping 13 matching lines...) Expand all
35 virtual ~LinkInfoBarDelegate(); 35 virtual ~LinkInfoBarDelegate();
36 36
37 private: 37 private:
38 // InfoBarDelegate: 38 // InfoBarDelegate:
39 virtual InfoBar* CreateInfoBar(InfoBarTabHelper* infobar_helper) OVERRIDE; 39 virtual InfoBar* CreateInfoBar(InfoBarTabHelper* infobar_helper) OVERRIDE;
40 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate() OVERRIDE; 40 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate() OVERRIDE;
41 41
42 DISALLOW_COPY_AND_ASSIGN(LinkInfoBarDelegate); 42 DISALLOW_COPY_AND_ASSIGN(LinkInfoBarDelegate);
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_ 45 #endif // CHROME_BROWSER_API_INFOBARS_LINK_INFOBAR_DELEGATE_H_
46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698