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

Side by Side Diff: chrome/browser/previews/previews_infobar_delegate.h

Issue 2258283002: UMA for previews infobar and Lo-Fi context menu items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newLoFiInfoBarRemoveAndroid
Patch Set: rebase Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_
7 7
8 #include "components/infobars/core/confirm_infobar_delegate.h" 8 #include "components/infobars/core/confirm_infobar_delegate.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 22 matching lines...) Expand all
33 PreviewsInfoBarType infobar_type); 33 PreviewsInfoBarType infobar_type);
34 34
35 private: 35 private:
36 PreviewsInfoBarDelegate(content::WebContents* web_contents, 36 PreviewsInfoBarDelegate(content::WebContents* web_contents,
37 PreviewsInfoBarType infobar_type); 37 PreviewsInfoBarType infobar_type);
38 38
39 // ConfirmInfoBarDelegate overrides: 39 // ConfirmInfoBarDelegate overrides:
40 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; 40 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
41 int GetIconId() const override; 41 int GetIconId() const override;
42 bool ShouldExpire(const NavigationDetails& details) const override; 42 bool ShouldExpire(const NavigationDetails& details) const override;
43 void InfoBarDismissed() override;
43 base::string16 GetMessageText() const override; 44 base::string16 GetMessageText() const override;
44 int GetButtons() const override; 45 int GetButtons() const override;
45 base::string16 GetLinkText() const override; 46 base::string16 GetLinkText() const override;
46 bool LinkClicked(WindowOpenDisposition disposition) override; 47 bool LinkClicked(WindowOpenDisposition disposition) override;
47 48
48 PreviewsInfoBarType infobar_type_; 49 PreviewsInfoBarType infobar_type_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBarDelegate); 51 DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBarDelegate);
51 }; 52 };
52 53
53 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ 54 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698