| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "chrome/browser/bookmarks/recently_used_folders_combo_model.h" | 10 #include "chrome/browser/bookmarks/recently_used_folders_combo_model.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // BookmarkBubbleView is a view intended to be used as the content of an | 29 // BookmarkBubbleView is a view intended to be used as the content of an |
| 30 // Bubble. BookmarkBubbleView provides views for unstarring and editing the | 30 // Bubble. BookmarkBubbleView provides views for unstarring and editing the |
| 31 // bookmark it is created with. Don't create a BookmarkBubbleView directly, | 31 // bookmark it is created with. Don't create a BookmarkBubbleView directly, |
| 32 // instead use the static Show method. | 32 // instead use the static Show method. |
| 33 class BookmarkBubbleView : public views::View, | 33 class BookmarkBubbleView : public views::View, |
| 34 public views::LinkListener, | 34 public views::LinkListener, |
| 35 public views::ButtonListener, | 35 public views::ButtonListener, |
| 36 public views::Combobox::Listener, | 36 public views::Combobox::Listener, |
| 37 public BubbleDelegate { | 37 public BubbleDelegate { |
| 38 public: | 38 public: |
| 39 static void Show(views::Window* window, | 39 static void Show(views::Widget* widget, |
| 40 const gfx::Rect& bounds, | 40 const gfx::Rect& bounds, |
| 41 BubbleDelegate* delegate, | 41 BubbleDelegate* delegate, |
| 42 Profile* profile, | 42 Profile* profile, |
| 43 const GURL& url, | 43 const GURL& url, |
| 44 bool newly_bookmarked); | 44 bool newly_bookmarked); |
| 45 | 45 |
| 46 static bool IsShowing(); | 46 static bool IsShowing(); |
| 47 | 47 |
| 48 static void Hide(); | 48 static void Hide(); |
| 49 | 49 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // When the destructor is invoked should the bookmark be removed? | 147 // When the destructor is invoked should the bookmark be removed? |
| 148 bool remove_bookmark_; | 148 bool remove_bookmark_; |
| 149 | 149 |
| 150 // When the destructor is invoked should edits be applied? | 150 // When the destructor is invoked should edits be applied? |
| 151 bool apply_edits_; | 151 bool apply_edits_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); | 153 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ | 156 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ |
| OLD | NEW |