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

Side by Side Diff: components/infobars/core/infobar_delegate.h

Issue 1160443010: More infobar cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix iOS too Created 5 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/base/window_open_disposition.h" 10 #include "ui/base/window_open_disposition.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Describes navigation events, used to decide whether infobars should be 56 // Describes navigation events, used to decide whether infobars should be
57 // dismissed. 57 // dismissed.
58 struct NavigationDetails { 58 struct NavigationDetails {
59 // Unique identifier for the entry. 59 // Unique identifier for the entry.
60 int entry_id; 60 int entry_id;
61 // True if it is a navigation to a different page (as opposed to in-page). 61 // True if it is a navigation to a different page (as opposed to in-page).
62 bool is_navigation_to_different_page; 62 bool is_navigation_to_different_page;
63 // True if the entry replaced the existing one. 63 // True if the entry replaced the existing one.
64 bool did_replace_entry; 64 bool did_replace_entry;
65 // True for the main frame, false for a sub-frame.
66 bool is_main_frame;
67 bool is_reload;
68 bool is_redirect; 65 bool is_redirect;
69 }; 66 };
70 67
71 // Value to use when the InfoBar has no icon to show. 68 // Value to use when the InfoBar has no icon to show.
72 static const int kNoIconID; 69 static const int kNoIconID;
73 70
74 // Called when the InfoBar that owns this delegate is being destroyed. At 71 // Called when the InfoBar that owns this delegate is being destroyed. At
75 // this point nothing is visible onscreen. 72 // this point nothing is visible onscreen.
76 virtual ~InfoBarDelegate(); 73 virtual ~InfoBarDelegate();
77 74
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 private: 132 private:
136 // The InfoBar associated with us. 133 // The InfoBar associated with us.
137 InfoBar* infobar_; 134 InfoBar* infobar_;
138 135
139 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 136 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
140 }; 137 };
141 138
142 } // namespace infobars 139 } // namespace infobars
143 140
144 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 141 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698