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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual ~BookmarkBubbleView(); | 42 virtual ~BookmarkBubbleView(); |
43 | 43 |
44 // views::BubbleDelegateView methods. | 44 // views::BubbleDelegateView methods. |
45 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 45 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
46 virtual gfx::Point GetAnchorPoint() OVERRIDE; | 46 virtual gfx::Point GetAnchorPoint() OVERRIDE; |
47 | 47 |
48 // views::WidgetDelegate method. | 48 // views::WidgetDelegate method. |
49 virtual void WindowClosing() OVERRIDE; | 49 virtual void WindowClosing() OVERRIDE; |
50 | 50 |
51 // views::View method. | 51 // views::View method. |
52 virtual bool AcceleratorPressed( | 52 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
53 const views::Accelerator& accelerator) OVERRIDE; | |
54 | 53 |
55 protected: | 54 protected: |
56 // views::BubbleDelegateView method. | 55 // views::BubbleDelegateView method. |
57 virtual void Init() OVERRIDE; | 56 virtual void Init() OVERRIDE; |
58 | 57 |
59 private: | 58 private: |
60 // Creates a BookmarkBubbleView. | 59 // Creates a BookmarkBubbleView. |
61 BookmarkBubbleView(views::View* anchor_view, | 60 BookmarkBubbleView(views::View* anchor_view, |
62 Profile* profile, | 61 Profile* profile, |
63 const GURL& url, | 62 const GURL& url, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // When the destructor is invoked should the bookmark be removed? | 124 // When the destructor is invoked should the bookmark be removed? |
126 bool remove_bookmark_; | 125 bool remove_bookmark_; |
127 | 126 |
128 // When the destructor is invoked should edits be applied? | 127 // When the destructor is invoked should edits be applied? |
129 bool apply_edits_; | 128 bool apply_edits_; |
130 | 129 |
131 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); | 130 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); |
132 }; | 131 }; |
133 | 132 |
134 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ | 133 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ |
OLD | NEW |