| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_BOOKMARK_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/gfx/rect.h" | 8 #include "base/gfx/rect.h" |
| 9 #include "chrome/browser/views/info_bubble.h" | 9 #include "chrome/browser/views/info_bubble.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| 11 #include "views/controls/button/button.h" | 11 #include "views/controls/button/button.h" |
| 12 #include "views/controls/combo_box.h" | 12 #include "views/controls/combo_box.h" |
| 13 #include "views/controls/link.h" | 13 #include "views/controls/link.h" |
| 14 #include "views/view.h" | 14 #include "views/view.h" |
| 15 | 15 |
| 16 class Profile; | 16 class Profile; |
| 17 | 17 |
| 18 class BookmarkModel; | 18 class BookmarkModel; |
| 19 class BookmarkNode; | 19 class BookmarkNode; |
| 20 | 20 |
| 21 namespace views { | 21 namespace views { |
| 22 class NativeButton; | 22 class NativeButton; |
| 23 class TextField; | 23 class Textfield; |
| 24 } | 24 } |
| 25 | 25 |
| 26 // BookmarkBubbleView is a view intended to be used as the content of an | 26 // BookmarkBubbleView is a view intended to be used as the content of an |
| 27 // InfoBubble. BookmarkBubbleView provides views for unstarring and editting | 27 // InfoBubble. BookmarkBubbleView provides views for unstarring and editting |
| 28 // the bookmark it is created with. Don't create a BookmarkBubbleView directly, | 28 // the bookmark it is created with. Don't create a BookmarkBubbleView directly, |
| 29 // instead use the static Show method. | 29 // instead use the static Show method. |
| 30 class BookmarkBubbleView : public views::View, | 30 class BookmarkBubbleView : public views::View, |
| 31 public views::LinkController, | 31 public views::LinkController, |
| 32 public views::ButtonListener, | 32 public views::ButtonListener, |
| 33 public views::ComboBox::Listener, | 33 public views::ComboBox::Listener, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 // Link for removing/unstarring the bookmark. | 149 // Link for removing/unstarring the bookmark. |
| 150 views::Link* remove_link_; | 150 views::Link* remove_link_; |
| 151 | 151 |
| 152 // Button to bring up the editor. | 152 // Button to bring up the editor. |
| 153 views::NativeButton* edit_button_; | 153 views::NativeButton* edit_button_; |
| 154 | 154 |
| 155 // Button to close the window. | 155 // Button to close the window. |
| 156 views::NativeButton* close_button_; | 156 views::NativeButton* close_button_; |
| 157 | 157 |
| 158 // TextField showing the title of the bookmark. | 158 // Textfield showing the title of the bookmark. |
| 159 views::TextField* title_tf_; | 159 views::Textfield* title_tf_; |
| 160 | 160 |
| 161 // ComboBox showing a handful of folders the user can choose from, including | 161 // ComboBox showing a handful of folders the user can choose from, including |
| 162 // the current parent. | 162 // the current parent. |
| 163 views::ComboBox* parent_combobox_; | 163 views::ComboBox* parent_combobox_; |
| 164 | 164 |
| 165 // When the destructor is invoked should the bookmark be removed? | 165 // When the destructor is invoked should the bookmark be removed? |
| 166 bool remove_bookmark_; | 166 bool remove_bookmark_; |
| 167 | 167 |
| 168 // When the destructor is invoked should edits be applied? | 168 // When the destructor is invoked should edits be applied? |
| 169 bool apply_edits_; | 169 bool apply_edits_; |
| 170 | 170 |
| 171 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); | 171 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BUBBLE_VIEW_H_ | 174 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BUBBLE_VIEW_H_ |
| OLD | NEW |