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

Unified Diff: chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_footnote_view.h

Issue 2803293002: Create Bookmark Footnote desktop iOS promotion (Closed)
Patch Set: win only Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_footnote_view.h
diff --git a/chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_footnote_view.h b/chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_footnote_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ab69657bccbcf0c2b3e2d0c29459e258d058e06
--- /dev/null
+++ b/chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_footnote_view.h
@@ -0,0 +1,38 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_FOOTNOTE_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_FOOTNOTE_VIEW_H_
+
+#include "base/macros.h"
+#include "ui/views/controls/styled_label.h"
+#include "ui/views/controls/styled_label_listener.h"
+
+class DesktopIOSPromotionController;
+class DesktopIOSPromotionFootnoteDelegate;
+class Profile;
+
+// Desktop iOS promotion Footnote displayed at the bottom of bookmark bubble.
+class DesktopIOSPromotionFootnoteView : public views::StyledLabel,
+ public views::StyledLabelListener {
+ public:
+ DesktopIOSPromotionFootnoteView(
+ Profile* profile,
+ DesktopIOSPromotionFootnoteDelegate* delegate);
+ ~DesktopIOSPromotionFootnoteView() override;
+
+ private:
+ // views::StyledLabelListener:
+ void StyledLabelLinkClicked(views::StyledLabel* label,
+ const gfx::Range& range,
+ int event_flags) override;
+
+ std::unique_ptr<DesktopIOSPromotionController> promotion_controller_;
+ // Delegate, to handle clicks on the sign in link.
+ DesktopIOSPromotionFootnoteDelegate* delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionFootnoteView);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_FOOTNOTE_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698