| OLD | NEW |
| 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 CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void Init() override; | 64 void Init() override; |
| 65 base::string16 GetWindowTitle() const override; | 65 base::string16 GetWindowTitle() const override; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 friend class BookmarkBubbleViewTest; | 68 friend class BookmarkBubbleViewTest; |
| 69 FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoSignedIn); | 69 FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoSignedIn); |
| 70 FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoNotSignedIn); | 70 FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoNotSignedIn); |
| 71 | 71 |
| 72 // views::BubbleDelegateView: | 72 // views::BubbleDelegateView: |
| 73 const char* GetClassName() const override; | 73 const char* GetClassName() const override; |
| 74 views::View* GetInitiallyFocusedView() override; | 74 View* GetInitiallyFocusedView() override; |
| 75 scoped_ptr<views::View> CreateFootnoteView() override; | 75 View* CreateFootnoteView() override; |
| 76 | 76 |
| 77 // Creates a BookmarkBubbleView. | 77 // Creates a BookmarkBubbleView. |
| 78 BookmarkBubbleView(views::View* anchor_view, | 78 BookmarkBubbleView(views::View* anchor_view, |
| 79 bookmarks::BookmarkBubbleObserver* observer, | 79 bookmarks::BookmarkBubbleObserver* observer, |
| 80 scoped_ptr<BubbleSyncPromoDelegate> delegate, | 80 scoped_ptr<BubbleSyncPromoDelegate> delegate, |
| 81 Profile* profile, | 81 Profile* profile, |
| 82 const GURL& url, | 82 const GURL& url, |
| 83 bool newly_bookmarked); | 83 bool newly_bookmarked); |
| 84 | 84 |
| 85 // Returns the title to display. | 85 // Returns the title to display. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // When the destructor is invoked should the bookmark be removed? | 143 // When the destructor is invoked should the bookmark be removed? |
| 144 bool remove_bookmark_; | 144 bool remove_bookmark_; |
| 145 | 145 |
| 146 // When the destructor is invoked should edits be applied? | 146 // When the destructor is invoked should edits be applied? |
| 147 bool apply_edits_; | 147 bool apply_edits_; |
| 148 | 148 |
| 149 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); | 149 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ | 152 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ |
| OLD | NEW |