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

Side by Side Diff: chrome/browser/autofill/autofill_infobar_delegate.h

Issue 339030: Add initial implementation of AutoFill++. This implementation is hidden behi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_INFOBAR_DELEGATE_H_
7
8 #include <string>
9
10 #include "chrome/browser/tab_contents/infobar_delegate.h"
11
12 class AutoFillManager;
13 class SkBitmap;
14 class TabContents;
15
16 // An InfoBar delegate that enables the user to allow or deny storing personal
17 // information gathered from a form submission.
18 class AutoFillInfoBarDelegate : public ConfirmInfoBarDelegate {
19 public:
20 AutoFillInfoBarDelegate(TabContents* tab_contents, AutoFillManager* host);
21 virtual ~AutoFillInfoBarDelegate();
22
23 // ConfirmInfoBarDelegate implementation.
24 virtual bool ShouldExpire(
25 const NavigationController::LoadCommittedDetails& details) const;
26 virtual void InfoBarClosed();
27 virtual std::wstring GetMessageText() const;
28 virtual SkBitmap* GetIcon() const;
29 virtual int GetButtons() const;
30 virtual std::wstring GetButtonLabel(
31 ConfirmInfoBarDelegate::InfoBarButton button) const;
32 virtual bool Accept();
33 virtual bool Cancel();
34
35 private:
36 // The autofill manager that initiated this infobar.
37 AutoFillManager* host_;
38
39 DISALLOW_COPY_AND_ASSIGN(AutoFillInfoBarDelegate);
40 };
41
42 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/autofill/autofill_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698