| 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 "app/combobox_model.h" | 8 #include "app/combobox_model.h" |
| 9 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
| 10 #include "chrome/browser/views/info_bubble.h" | 10 #include "chrome/browser/views/info_bubble.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // Overriden to force a layout. | 50 // Overriden to force a layout. |
| 51 virtual void DidChangeBounds(const gfx::Rect& previous, | 51 virtual void DidChangeBounds(const gfx::Rect& previous, |
| 52 const gfx::Rect& current); | 52 const gfx::Rect& current); |
| 53 | 53 |
| 54 // Invoked after the bubble has been shown. | 54 // Invoked after the bubble has been shown. |
| 55 virtual void BubbleShown(); | 55 virtual void BubbleShown(); |
| 56 | 56 |
| 57 // Override to close on return. | 57 // Override to close on return. |
| 58 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 58 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
| 59 | 59 |
| 60 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| 61 |
| 60 private: | 62 private: |
| 61 // Model for the combobox showing the list of folders to choose from. The | 63 // Model for the combobox showing the list of folders to choose from. The |
| 62 // list always contains the bookmark bar, other node and parent. The list | 64 // list always contains the bookmark bar, other node and parent. The list |
| 63 // also contains an extra item that shows the text 'Choose another folder...'. | 65 // also contains an extra item that shows the text 'Choose another folder...'. |
| 64 class RecentlyUsedFoldersModel : public ComboboxModel { | 66 class RecentlyUsedFoldersModel : public ComboboxModel { |
| 65 public: | 67 public: |
| 66 RecentlyUsedFoldersModel(BookmarkModel* bb_model, const BookmarkNode* node); | 68 RecentlyUsedFoldersModel(BookmarkModel* bb_model, const BookmarkNode* node); |
| 67 | 69 |
| 68 // Combobox::Model methods. Call through to nodes_. | 70 // Combobox::Model methods. Call through to nodes_. |
| 69 virtual int GetItemCount(); | 71 virtual int GetItemCount(); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // When the destructor is invoked should the bookmark be removed? | 168 // When the destructor is invoked should the bookmark be removed? |
| 167 bool remove_bookmark_; | 169 bool remove_bookmark_; |
| 168 | 170 |
| 169 // When the destructor is invoked should edits be applied? | 171 // When the destructor is invoked should edits be applied? |
| 170 bool apply_edits_; | 172 bool apply_edits_; |
| 171 | 173 |
| 172 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); | 174 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); |
| 173 }; | 175 }; |
| 174 | 176 |
| 175 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BUBBLE_VIEW_H_ | 177 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BUBBLE_VIEW_H_ |
| OLD | NEW |