[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / bookmarks / bookmark_sync_promo_view.h
blob45bde7f4472051de36053b01e0c7b2b30937194d
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_SYNC_PROMO_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_SYNC_PROMO_VIEW_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/styled_label_listener.h"
11 #include "ui/views/view.h"
13 class BookmarkBubbleDelegate;
15 // Bookmark sync promo displayed at the bottom of the bookmark bubble.
16 class BookmarkSyncPromoView : public views::StyledLabelListener,
17 public views::View {
18 public:
19 // |delegate| is not owned by BookmarkSyncPromoView.
20 explicit BookmarkSyncPromoView(BookmarkBubbleDelegate* delegate);
22 private:
23 // views::StyledLabelListener:
24 virtual void StyledLabelLinkClicked(const gfx::Range& range,
25 int event_flags) OVERRIDE;
27 // Delegate, to handle clicks on the sign in link.
28 BookmarkBubbleDelegate* delegate_;
30 DISALLOW_COPY_AND_ASSIGN(BookmarkSyncPromoView);
33 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_SYNC_PROMO_VIEW_H_