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

Side by Side Diff: chrome/browser/ui/views/page_info/page_info_bubble_view.h

Issue 2882533003: [Mac] Hover/Active Omnibox Icon States for Secondary UI MD (Closed)
Patch Set: Move LocationBarDecoration to cocoa Created 3 years, 7 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_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Type of the bubble being displayed. 69 // Type of the bubble being displayed.
70 enum BubbleType { 70 enum BubbleType {
71 BUBBLE_NONE, 71 BUBBLE_NONE,
72 // Usual page info bubble for websites. 72 // Usual page info bubble for websites.
73 BUBBLE_PAGE_INFO, 73 BUBBLE_PAGE_INFO,
74 // Custom bubble for internal pages like chrome:// and chrome-extensions://. 74 // Custom bubble for internal pages like chrome:// and chrome-extensions://.
75 BUBBLE_INTERNAL_PAGE 75 BUBBLE_INTERNAL_PAGE
76 }; 76 };
77 77
78 // If |anchor_view| is null, |anchor_rect| is used to anchor the bubble. 78 // If |anchor_view| is null, |anchor_rect| is used to anchor the bubble.
sky 2017/05/19 20:03:22 Document return value, and in particular document
79 static void ShowBubble(views::View* anchor_view, 79 static views::BubbleDialogDelegateView* ShowBubble(
80 const gfx::Rect& anchor_rect, 80 views::View* anchor_view,
81 Profile* profile, 81 const gfx::Rect& anchor_rect,
82 content::WebContents* web_contents, 82 Profile* profile,
83 const GURL& url, 83 content::WebContents* web_contents,
84 const security_state::SecurityInfo& security_info); 84 const GURL& url,
85 const security_state::SecurityInfo& security_info);
85 86
86 // Returns the type of the bubble being shown. 87 // Returns the type of the bubble being shown.
87 static BubbleType GetShownBubbleType(); 88 static BubbleType GetShownBubbleType();
88 89
89 private: 90 private:
90 friend class test::PageInfoBubbleViewTestApi; 91 friend class test::PageInfoBubbleViewTestApi;
91 92
92 PageInfoBubbleView(views::View* anchor_view, 93 PageInfoBubbleView(views::View* anchor_view,
93 gfx::NativeView parent_window, 94 gfx::NativeView parent_window,
94 Profile* profile, 95 Profile* profile,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // permissions section, and keep those views updated when the underlying 174 // permissions section, and keep those views updated when the underlying
174 // |Permission| changes. 175 // |Permission| changes.
175 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_; 176 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_;
176 177
177 base::WeakPtrFactory<PageInfoBubbleView> weak_factory_; 178 base::WeakPtrFactory<PageInfoBubbleView> weak_factory_;
178 179
179 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); 180 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView);
180 }; 181 };
181 182
182 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ 183 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698