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

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

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CONFIRM_INFOBAR_DELEGATE_H_ 5 #ifndef COMPONENTS_INFOBARS_CORE_CONFIRM_INFOBAR_DELEGATE_H_
6 #define COMPONENTS_INFOBARS_CORE_CONFIRM_INFOBAR_DELEGATE_H_ 6 #define COMPONENTS_INFOBARS_CORE_CONFIRM_INFOBAR_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "components/infobars/core/infobar_delegate.h" 10 #include "components/infobars/core/infobar_delegate.h"
11 #include "components/infobars/core/infobar_manager.h" 11 #include "components/infobars/core/infobar_manager.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace infobars { 14 namespace infobars {
15 class InfoBar; 15 class InfoBar;
16 class InfoBarManager;
17 } 16 }
18 17
19 // An interface derived from InfoBarDelegate implemented by objects wishing to 18 // An interface derived from InfoBarDelegate implemented by objects wishing to
20 // control a ConfirmInfoBar. 19 // control a ConfirmInfoBar.
21 class ConfirmInfoBarDelegate : public infobars::InfoBarDelegate { 20 class ConfirmInfoBarDelegate : public infobars::InfoBarDelegate {
22 public: 21 public:
23 enum InfoBarButton { 22 enum InfoBarButton {
24 BUTTON_NONE = 0, 23 BUTTON_NONE = 0,
25 BUTTON_OK = 1 << 0, 24 BUTTON_OK = 1 << 0,
26 BUTTON_CANCEL = 1 << 1, 25 BUTTON_CANCEL = 1 << 1,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 76
78 private: 77 private:
79 // InfoBarDelegate: 78 // InfoBarDelegate:
80 bool EqualsDelegate(infobars::InfoBarDelegate* delegate) const override; 79 bool EqualsDelegate(infobars::InfoBarDelegate* delegate) const override;
81 ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() override; 80 ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() override;
82 81
83 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate); 82 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBarDelegate);
84 }; 83 };
85 84
86 #endif // COMPONENTS_INFOBARS_CORE_CONFIRM_INFOBAR_DELEGATE_H_ 85 #endif // COMPONENTS_INFOBARS_CORE_CONFIRM_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/history/core/browser/typed_url_syncable_service.h ('k') | components/infobars/core/infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698