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

Side by Side Diff: chrome/browser/tab_contents/confirm_infobar_delegate.h

Issue 7324001: Revert 89864 - Don't rely on user gestures for deciding when to dismiss infobars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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_CONFIRM_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // the link was clicked). This function returns true if the InfoBar should be 52 // the link was clicked). This function returns true if the InfoBar should be
53 // closed now or false if it should remain until the user explicitly closes 53 // closed now or false if it should remain until the user explicitly closes
54 // it. 54 // it.
55 // Will only be called if GetLinkText() returns non-empty string. 55 // Will only be called if GetLinkText() returns non-empty string.
56 virtual bool LinkClicked(WindowOpenDisposition disposition); 56 virtual bool LinkClicked(WindowOpenDisposition disposition);
57 57
58 protected: 58 protected:
59 explicit ConfirmInfoBarDelegate(TabContents* contents); 59 explicit ConfirmInfoBarDelegate(TabContents* contents);
60 virtual ~ConfirmInfoBarDelegate(); 60 virtual ~ConfirmInfoBarDelegate();
61 61
62 virtual bool ShouldExpire(
63 const content::LoadCommittedDetails& details) const OVERRIDE;
64
65 private: 62 private:
66 // InfoBarDelegate: 63 // InfoBarDelegate:
67 virtual InfoBar* CreateInfoBar(TabContentsWrapper* owner) OVERRIDE; 64 virtual InfoBar* CreateInfoBar(TabContentsWrapper* owner) OVERRIDE;
68 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; 65 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE;
69 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE; 66 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() OVERRIDE;
70 67
71 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate); 68 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate);
72 }; 69 };
73 70
74 #endif // CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_ 71 #endif // CHROME_BROWSER_TAB_CONTENTS_CONFIRM_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/tab_contents/confirm_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698