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

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

Issue 1308713002: [Mac] Enable MacViews bookmark bubble behind --enable-mac-views-dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pulse
Patch Set: Address comments. Created 5 years, 3 months 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
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 18 matching lines...) Expand all
29 } 29 }
30 30
31 // BookmarkBubbleView is a view intended to be used as the content of an 31 // BookmarkBubbleView is a view intended to be used as the content of an
32 // Bubble. BookmarkBubbleView provides views for unstarring and editing the 32 // Bubble. BookmarkBubbleView provides views for unstarring and editing the
33 // bookmark it is created with. Don't create a BookmarkBubbleView directly, 33 // bookmark it is created with. Don't create a BookmarkBubbleView directly,
34 // instead use the static Show method. 34 // instead use the static Show method.
35 class BookmarkBubbleView : public views::BubbleDelegateView, 35 class BookmarkBubbleView : public views::BubbleDelegateView,
36 public views::ButtonListener, 36 public views::ButtonListener,
37 public views::ComboboxListener { 37 public views::ComboboxListener {
38 public: 38 public:
39 // If |anchor_view| is null, |anchor_rect| is used to anchor the bubble and
40 // |parent_window| is used to ensure the bubble closes if the parent closes.
39 static void ShowBubble(views::View* anchor_view, 41 static void ShowBubble(views::View* anchor_view,
42 const gfx::Rect& anchor_rect,
43 gfx::NativeView parent_window,
40 bookmarks::BookmarkBubbleObserver* observer, 44 bookmarks::BookmarkBubbleObserver* observer,
41 scoped_ptr<BookmarkBubbleDelegate> delegate, 45 scoped_ptr<BookmarkBubbleDelegate> delegate,
42 Profile* profile, 46 Profile* profile,
43 const GURL& url, 47 const GURL& url,
44 bool newly_bookmarked); 48 bool already_bookmarked);
45 49
46 static void Hide(); 50 static void Hide();
47 51
48 static BookmarkBubbleView* bookmark_bubble() { return bookmark_bubble_; } 52 static BookmarkBubbleView* bookmark_bubble() { return bookmark_bubble_; }
49 53
50 ~BookmarkBubbleView() override; 54 ~BookmarkBubbleView() override;
51 55
52 // views::WidgetDelegate: 56 // views::WidgetDelegate:
53 void WindowClosing() override; 57 void WindowClosing() override;
54 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 58 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // When the destructor is invoked should the bookmark be removed? 142 // When the destructor is invoked should the bookmark be removed?
139 bool remove_bookmark_; 143 bool remove_bookmark_;
140 144
141 // When the destructor is invoked should edits be applied? 145 // When the destructor is invoked should edits be applied?
142 bool apply_edits_; 146 bool apply_edits_;
143 147
144 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); 148 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView);
145 }; 149 };
146 150
147 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ 151 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698