Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_SYNC_PROMO_VIEW_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_SYNC_PROMO_VIEW_H_ | |
| 7 | |
| 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" | |
| 12 | |
| 13 class BookmarkBubbleDelegate; | |
| 14 | |
| 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 explicit BookmarkSyncPromoView(BookmarkBubbleDelegate* delegate); | |
|
sky
2013/07/17 16:08:02
Document ownership.
fdoray
2013/07/17 19:39:56
Done.
| |
| 20 | |
| 21 private: | |
| 22 // views::StyledLabelListener: | |
| 23 virtual void StyledLabelLinkClicked(const ui::Range& range, | |
| 24 int event_flags) OVERRIDE; | |
| 25 | |
| 26 // Delegate, to handle clicks on the sign in link. | |
| 27 BookmarkBubbleDelegate* delegate_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(BookmarkSyncPromoView); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_SYNC_PROMO_VIEW_H_ | |
| OLD | NEW |