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

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

Issue 678803003: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 26 matching lines...) Expand all
37 BookmarkBubbleViewObserver* observer, 37 BookmarkBubbleViewObserver* observer,
38 scoped_ptr<BookmarkBubbleDelegate> delegate, 38 scoped_ptr<BookmarkBubbleDelegate> delegate,
39 Profile* profile, 39 Profile* profile,
40 const GURL& url, 40 const GURL& url,
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 ~BookmarkBubbleView() override;
48 48
49 // views::BubbleDelegateView method. 49 // views::BubbleDelegateView method.
50 virtual views::View* GetInitiallyFocusedView() override; 50 views::View* GetInitiallyFocusedView() override;
51 51
52 // views::WidgetDelegate method. 52 // views::WidgetDelegate method.
53 virtual void WindowClosing() override; 53 void WindowClosing() override;
54 54
55 // views::View method. 55 // views::View method.
56 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 56 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
57 57
58 protected: 58 protected:
59 // views::BubbleDelegateView method. 59 // views::BubbleDelegateView method.
60 virtual void Init() override; 60 void Init() override;
61 61
62 private: 62 private:
63 friend class BookmarkBubbleViewTest; 63 friend class BookmarkBubbleViewTest;
64 FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoSignedIn); 64 FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoSignedIn);
65 FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoNotSignedIn); 65 FRIEND_TEST_ALL_PREFIXES(BookmarkBubbleViewTest, SyncPromoNotSignedIn);
66 66
67 // Creates a BookmarkBubbleView. 67 // Creates a BookmarkBubbleView.
68 BookmarkBubbleView(views::View* anchor_view, 68 BookmarkBubbleView(views::View* anchor_view,
69 BookmarkBubbleViewObserver* observer, 69 BookmarkBubbleViewObserver* observer,
70 scoped_ptr<BookmarkBubbleDelegate> delegate, 70 scoped_ptr<BookmarkBubbleDelegate> delegate,
71 Profile* profile, 71 Profile* profile,
72 const GURL& url, 72 const GURL& url,
73 bool newly_bookmarked); 73 bool newly_bookmarked);
74 74
75 // Returns the title to display. 75 // Returns the title to display.
76 base::string16 GetTitle(); 76 base::string16 GetTitle();
77 77
78 // Overridden from views::View: 78 // Overridden from views::View:
79 virtual void GetAccessibleState(ui::AXViewState* state) override; 79 void GetAccessibleState(ui::AXViewState* state) override;
80 80
81 // Overridden from views::ButtonListener: 81 // Overridden from views::ButtonListener:
82 // Closes the bubble or opens the edit dialog. 82 // Closes the bubble or opens the edit dialog.
83 virtual void ButtonPressed(views::Button* sender, 83 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
84 const ui::Event& event) override;
85 84
86 // Overridden from views::ComboboxListener: 85 // Overridden from views::ComboboxListener:
87 virtual void OnPerformAction(views::Combobox* combobox) override; 86 void OnPerformAction(views::Combobox* combobox) override;
88 87
89 // Handle the message when the user presses a button. 88 // Handle the message when the user presses a button.
90 void HandleButtonPressed(views::Button* sender); 89 void HandleButtonPressed(views::Button* sender);
91 90
92 // Shows the BookmarkEditor. 91 // Shows the BookmarkEditor.
93 void ShowEditor(); 92 void ShowEditor();
94 93
95 // Sets the title and parent of the node. 94 // Sets the title and parent of the node.
96 void ApplyEdits(); 95 void ApplyEdits();
97 96
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // When the destructor is invoked should the bookmark be removed? 136 // When the destructor is invoked should the bookmark be removed?
138 bool remove_bookmark_; 137 bool remove_bookmark_;
139 138
140 // When the destructor is invoked should edits be applied? 139 // When the destructor is invoked should edits be applied?
141 bool apply_edits_; 140 bool apply_edits_;
142 141
143 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView); 142 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleView);
144 }; 143 };
145 144
146 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_ 145 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ('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