| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Combobox::Listener method. Changes the parent of the bookmark. | 83 // Combobox::Listener method. Changes the parent of the bookmark. |
| 84 virtual void ItemChanged(views::Combobox* combobox, | 84 virtual void ItemChanged(views::Combobox* combobox, |
| 85 int prev_index, | 85 int prev_index, |
| 86 int new_index); | 86 int new_index); |
| 87 | 87 |
| 88 // BubbleDelegate methods. These forward to the BubbleDelegate supplied in the | 88 // BubbleDelegate methods. These forward to the BubbleDelegate supplied in the |
| 89 // constructor as well as sending out the necessary notification. | 89 // constructor as well as sending out the necessary notification. |
| 90 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape); | 90 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape); |
| 91 virtual bool CloseOnEscape(); | 91 virtual bool CloseOnEscape(); |
| 92 virtual bool FadeInOnShow(); | 92 virtual bool FadeInOnShow(); |
| 93 virtual std::wstring accessible_name(); | 93 virtual string16 GetAccessibleName(); |
| 94 | 94 |
| 95 // Closes the bubble. | 95 // Closes the bubble. |
| 96 void Close(); | 96 void Close(); |
| 97 | 97 |
| 98 // Handle the message when the user presses a button. | 98 // Handle the message when the user presses a button. |
| 99 void HandleButtonPressed(views::Button* sender); | 99 void HandleButtonPressed(views::Button* sender); |
| 100 | 100 |
| 101 // Shows the BookmarkEditor. | 101 // Shows the BookmarkEditor. |
| 102 void ShowEditor(); | 102 void ShowEditor(); |
| 103 | 103 |
| (...skipping 43 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 |