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

Side by Side Diff: chrome/browser/ui/views/website_settings/website_settings_popup_view.h

Issue 1280673003: [Mac] Enable MacViews site settings bubble behind --enable-mac-views-dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enabledialogs
Patch Set: Missed a comment. Created 5 years, 4 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_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public WebsiteSettingsUI { 42 public WebsiteSettingsUI {
43 public: 43 public:
44 ~WebsiteSettingsPopupView() override; 44 ~WebsiteSettingsPopupView() override;
45 45
46 static void ShowPopup(views::View* anchor_view, 46 static void ShowPopup(views::View* anchor_view,
47 Profile* profile, 47 Profile* profile,
48 content::WebContents* web_contents, 48 content::WebContents* web_contents,
49 const GURL& url, 49 const GURL& url,
50 const content::SSLStatus& ssl); 50 const content::SSLStatus& ssl);
51 51
52 static void ShowPopupAtRect(const gfx::Rect& anchor_rect,
53 Profile* profile,
54 content::WebContents* web_contents,
55 const GURL& url,
56 const content::SSLStatus& ssl);
57
52 static bool IsPopupShowing(); 58 static bool IsPopupShowing();
53 59
54 private: 60 private:
55 WebsiteSettingsPopupView(views::View* anchor_view, 61 WebsiteSettingsPopupView(views::View* anchor_view,
62 gfx::NativeView parent_window,
56 Profile* profile, 63 Profile* profile,
57 content::WebContents* web_contents, 64 content::WebContents* web_contents,
58 const GURL& url, 65 const GURL& url,
59 const content::SSLStatus& ssl); 66 const content::SSLStatus& ssl);
60 67
61 // PermissionSelectorViewObserver implementation. 68 // PermissionSelectorViewObserver implementation.
62 void OnPermissionChanged( 69 void OnPermissionChanged(
63 const WebsiteSettingsUI::PermissionInfo& permission) override; 70 const WebsiteSettingsUI::PermissionInfo& permission) override;
64 71
65 // views::BubbleDelegateView implementation. 72 // views::BubbleDelegateView implementation.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 views::Link* site_settings_link_; 177 views::Link* site_settings_link_;
171 178
172 views::View* connection_info_content_; 179 views::View* connection_info_content_;
173 180
174 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; 181 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_;
175 182
176 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); 183 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView);
177 }; 184 };
178 185
179 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_ 186 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698