| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Combobox::Listener method. Changes the parent of the bookmark. | 86 // Combobox::Listener method. Changes the parent of the bookmark. |
| 87 virtual void ItemChanged(views::Combobox* combobox, | 87 virtual void ItemChanged(views::Combobox* combobox, |
| 88 int prev_index, | 88 int prev_index, |
| 89 int new_index) OVERRIDE; | 89 int new_index) OVERRIDE; |
| 90 | 90 |
| 91 // BubbleDelegate methods. These forward to the BubbleDelegate supplied in the | 91 // BubbleDelegate methods. These forward to the BubbleDelegate supplied in the |
| 92 // constructor as well as sending out the necessary notification. | 92 // constructor as well as sending out the necessary notification. |
| 93 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape) OVERRIDE; | 93 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape) OVERRIDE; |
| 94 virtual bool CloseOnEscape() OVERRIDE; | 94 virtual bool CloseOnEscape() OVERRIDE; |
| 95 virtual bool FadeInOnShow() OVERRIDE; | 95 virtual bool FadeInOnShow() OVERRIDE; |
| 96 virtual string16 accessible_name() OVERRIDE; | 96 virtual string16 GetAccessibleName() OVERRIDE; |
| 97 | 97 |
| 98 // Closes the bubble. | 98 // Closes the bubble. |
| 99 void Close(); | 99 void Close(); |
| 100 | 100 |
| 101 // Handle the message when the user presses a button. | 101 // Handle the message when the user presses a button. |
| 102 void HandleButtonPressed(views::Button* sender); | 102 void HandleButtonPressed(views::Button* sender); |
| 103 | 103 |
| 104 // Shows the BookmarkEditor. | 104 // Shows the BookmarkEditor. |
| 105 void ShowEditor(); | 105 void ShowEditor(); |
| 106 | 106 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // When the destructor is invoked should the bookmark be removed? | 150 // When the destructor is invoked should the bookmark be removed? |
| 151 bool remove_bookmark_; | 151 bool remove_bookmark_; |
| 152 | 152 |
| 153 // When the destructor is invoked should edits be applied? | 153 // When the destructor is invoked should edits be applied? |
| 154 bool apply_edits_; | 154 bool apply_edits_; |
| 155 | 155 |
| 156 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); | 156 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ | 159 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ |
| OLD | NEW |