| 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 30 matching lines...) Expand all Loading... |
| 41 bool newly_bookmarked); | 41 bool newly_bookmarked); |
| 42 | 42 |
| 43 static bool IsShowing(); | 43 static bool IsShowing(); |
| 44 | 44 |
| 45 static void Hide(); | 45 static void Hide(); |
| 46 | 46 |
| 47 virtual ~BookmarkBubbleView(); | 47 virtual ~BookmarkBubbleView(); |
| 48 | 48 |
| 49 // views::BubbleDelegateView method. | 49 // views::BubbleDelegateView method. |
| 50 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 50 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 51 virtual void OnWidgetBoundsChanged(views::Widget* widget, |
| 52 const gfx::Rect& new_bounds) OVERRIDE; |
| 51 | 53 |
| 52 // views::WidgetDelegate method. | 54 // views::WidgetDelegate method. |
| 53 virtual void WindowClosing() OVERRIDE; | 55 virtual void WindowClosing() OVERRIDE; |
| 54 | 56 |
| 55 // views::View method. | 57 // views::View method. |
| 56 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 58 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 57 | 59 |
| 58 protected: | 60 protected: |
| 59 // views::BubbleDelegateView method. | 61 // views::BubbleDelegateView method. |
| 60 virtual void Init() OVERRIDE; | 62 virtual void Init() OVERRIDE; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // When the destructor is invoked should the bookmark be removed? | 140 // When the destructor is invoked should the bookmark be removed? |
| 139 bool remove_bookmark_; | 141 bool remove_bookmark_; |
| 140 | 142 |
| 141 // When the destructor is invoked should edits be applied? | 143 // When the destructor is invoked should edits be applied? |
| 142 bool apply_edits_; | 144 bool apply_edits_; |
| 143 | 145 |
| 144 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); | 146 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); |
| 145 }; | 147 }; |
| 146 | 148 |
| 147 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ | 149 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ |
| OLD | NEW |