Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h

Issue 89503003: Close bubble widget when its anchor widget bounds has changed and move_with_anchor is false. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698