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

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

Issue 1518543002: Adds MD ink ripple animations to buttons within location bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds MD ink ripple animations to buttons within location bar (missing member init) Created 4 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
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 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. 40 // |parent_window| is used to ensure the bubble closes if the parent closes.
41 static void ShowBubble(views::View* anchor_view, 41 // Returns the newly created bubble's Widget or nullptr in case when the
42 const gfx::Rect& anchor_rect, 42 // bubble already exists.
43 gfx::NativeView parent_window, 43 static views::Widget* ShowBubble(views::View* anchor_view,
44 bookmarks::BookmarkBubbleObserver* observer, 44 const gfx::Rect& anchor_rect,
45 scoped_ptr<BubbleSyncPromoDelegate> delegate, 45 gfx::NativeView parent_window,
46 Profile* profile, 46 bookmarks::BookmarkBubbleObserver* observer,
47 const GURL& url, 47 scoped_ptr<BubbleSyncPromoDelegate> delegate,
48 bool already_bookmarked); 48 Profile* profile,
49 const GURL& url,
50 bool already_bookmarked);
49 51
50 static void Hide(); 52 static void Hide();
51 53
52 static BookmarkBubbleView* bookmark_bubble() { return bookmark_bubble_; } 54 static BookmarkBubbleView* bookmark_bubble() { return bookmark_bubble_; }
53 55
54 ~BookmarkBubbleView() override; 56 ~BookmarkBubbleView() override;
55 57
56 // views::WidgetDelegate: 58 // views::WidgetDelegate:
57 void WindowClosing() override; 59 void WindowClosing() override;
58 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 60 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // When the destructor is invoked should the bookmark be removed? 144 // When the destructor is invoked should the bookmark be removed?
143 bool remove_bookmark_; 145 bool remove_bookmark_;
144 146
145 // When the destructor is invoked should edits be applied? 147 // When the destructor is invoked should edits be applied?
146 bool apply_edits_; 148 bool apply_edits_;
147 149
148 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); 150 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView);
149 }; 151 };
150 152
151 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ 153 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698