| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Overridden from views::View: | 78 // Overridden from views::View: |
| 79 virtual gfx::Size GetMinimumSize() OVERRIDE; | 79 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 80 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 80 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 81 | 81 |
| 82 // Overridden from views::ButtonListener: | 82 // Overridden from views::ButtonListener: |
| 83 // Closes the bubble or opens the edit dialog. | 83 // Closes the bubble or opens the edit dialog. |
| 84 virtual void ButtonPressed(views::Button* sender, | 84 virtual void ButtonPressed(views::Button* sender, |
| 85 const ui::Event& event) OVERRIDE; | 85 const ui::Event& event) OVERRIDE; |
| 86 | 86 |
| 87 // Overridden from views::ComboboxListener: | 87 // Overridden from views::ComboboxListener: |
| 88 virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE; | 88 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE; |
| 89 | 89 |
| 90 // Handle the message when the user presses a button. | 90 // Handle the message when the user presses a button. |
| 91 void HandleButtonPressed(views::Button* sender); | 91 void HandleButtonPressed(views::Button* sender); |
| 92 | 92 |
| 93 // Shows the BookmarkEditor. | 93 // Shows the BookmarkEditor. |
| 94 void ShowEditor(); | 94 void ShowEditor(); |
| 95 | 95 |
| 96 // Sets the title and parent of the node. | 96 // Sets the title and parent of the node. |
| 97 void ApplyEdits(); | 97 void ApplyEdits(); |
| 98 | 98 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // When the destructor is invoked should the bookmark be removed? | 138 // When the destructor is invoked should the bookmark be removed? |
| 139 bool remove_bookmark_; | 139 bool remove_bookmark_; |
| 140 | 140 |
| 141 // When the destructor is invoked should edits be applied? | 141 // When the destructor is invoked should edits be applied? |
| 142 bool apply_edits_; | 142 bool apply_edits_; |
| 143 | 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); | 144 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ | 147 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ |
| OLD | NEW |