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

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: Address comments. 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 25 matching lines...) Expand all
36 class WebsiteSettingsPopupView 36 class WebsiteSettingsPopupView
37 : public PermissionSelectorViewObserver, 37 : public PermissionSelectorViewObserver,
38 public views::BubbleDelegateView, 38 public views::BubbleDelegateView,
39 public views::ButtonListener, 39 public views::ButtonListener,
40 public views::LinkListener, 40 public views::LinkListener,
41 public views::TabbedPaneListener, 41 public views::TabbedPaneListener,
42 public WebsiteSettingsUI { 42 public WebsiteSettingsUI {
43 public: 43 public:
44 ~WebsiteSettingsPopupView() override; 44 ~WebsiteSettingsPopupView() override;
45 45
46 // If |anchor_view| is null, |anchor_rect| is used to anchor the bubble.
46 static void ShowPopup(views::View* anchor_view, 47 static void ShowPopup(views::View* anchor_view,
48 const gfx::Rect& anchor_rect,
47 Profile* profile, 49 Profile* profile,
48 content::WebContents* web_contents, 50 content::WebContents* web_contents,
49 const GURL& url, 51 const GURL& url,
50 const content::SSLStatus& ssl); 52 const content::SSLStatus& ssl);
51 53
52 static bool IsPopupShowing(); 54 static bool IsPopupShowing();
53 55
54 private: 56 private:
55 WebsiteSettingsPopupView(views::View* anchor_view, 57 WebsiteSettingsPopupView(views::View* anchor_view,
58 gfx::NativeView parent_window,
56 Profile* profile, 59 Profile* profile,
57 content::WebContents* web_contents, 60 content::WebContents* web_contents,
58 const GURL& url, 61 const GURL& url,
59 const content::SSLStatus& ssl); 62 const content::SSLStatus& ssl);
60 63
61 // PermissionSelectorViewObserver implementation. 64 // PermissionSelectorViewObserver implementation.
62 void OnPermissionChanged( 65 void OnPermissionChanged(
63 const WebsiteSettingsUI::PermissionInfo& permission) override; 66 const WebsiteSettingsUI::PermissionInfo& permission) override;
64 67
65 // views::BubbleDelegateView implementation. 68 // views::BubbleDelegateView implementation.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 views::Link* site_settings_link_; 173 views::Link* site_settings_link_;
171 174
172 views::View* connection_info_content_; 175 views::View* connection_info_content_;
173 176
174 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; 177 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_;
175 178
176 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); 179 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView);
177 }; 180 };
178 181
179 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_ 182 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/website_settings/website_settings_popup_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698