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

Side by Side Diff: chrome/browser/ui/gtk/website_settings_popup_gtk.h

Issue 10545115: TabContentsWrapper -> TabContents, part 41. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 14 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
15 #include "chrome/browser/ui/website_settings/website_settings_ui.h" 15 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
16 16
17 class Browser; 17 class Browser;
18 class GtkThemeService; 18 class GtkThemeService;
19 class GURL; 19 class GURL;
20 class Profile; 20 class Profile;
21 class TabContents; 21 class TabContents;
22 typedef TabContents TabContentsWrapper;
23 class WebsiteSettings; 22 class WebsiteSettings;
24 23
25 namespace content { 24 namespace content {
26 struct SSLStatus; 25 struct SSLStatus;
27 } 26 }
28 27
29 // GTK implementation of the website settings UI. 28 // GTK implementation of the website settings UI.
30 class WebsiteSettingsPopupGtk : public WebsiteSettingsUI, 29 class WebsiteSettingsPopupGtk : public WebsiteSettingsUI,
31 public BubbleDelegateGtk { 30 public BubbleDelegateGtk {
32 public: 31 public:
33 // Creates a |WebsiteSettingsPopupGtk| and displays the UI. The |url| 32 // Creates a |WebsiteSettingsPopupGtk| and displays the UI. The |url|
34 // contains the omnibox URL of the currently active tab, |parent| contains 33 // contains the omnibox URL of the currently active tab, |parent| contains
35 // the currently active window, |profile| contains the currently active 34 // the currently active window, |profile| contains the currently active
36 // profile and |ssl| contains the |SSLStatus| of the connection to the 35 // profile and |ssl| contains the |SSLStatus| of the connection to the
37 // website in the currently active tab that is wrapped by the 36 // website in the currently active tab that is wrapped by the
38 // |tab_contents_wrapper|. 37 // |tab_contents|.
39 static void Show(gfx::NativeWindow parent, 38 static void Show(gfx::NativeWindow parent,
40 Profile* profile, 39 Profile* profile,
41 TabContentsWrapper* tab_contents_wrapper, 40 TabContents* tab_contents,
42 const GURL& url, 41 const GURL& url,
43 const content::SSLStatus& ssl); 42 const content::SSLStatus& ssl);
44 43
45 private: 44 private:
46 WebsiteSettingsPopupGtk(gfx::NativeWindow parent, 45 WebsiteSettingsPopupGtk(gfx::NativeWindow parent,
47 Profile* profile, 46 Profile* profile,
48 TabContentsWrapper* wrapper, 47 TabContents* tab_contents,
49 const GURL& url, 48 const GURL& url,
50 const content::SSLStatus& ssl); 49 const content::SSLStatus& ssl);
51 50
52 // WebsiteSettingsUI implementations. 51 // WebsiteSettingsUI implementations.
53 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; 52 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE;
54 virtual void SetPermissionInfo( 53 virtual void SetPermissionInfo(
55 const PermissionInfoList& permission_info_list) OVERRIDE; 54 const PermissionInfoList& permission_info_list) OVERRIDE;
56 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE; 55 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE;
57 virtual void SetFirstVisit(const string16& first_visit) OVERRIDE; 56 virtual void SetFirstVisit(const string16& first_visit) OVERRIDE;
58 57
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 GtkWidget* anchor_; 94 GtkWidget* anchor_;
96 95
97 // Provides colors and stuff. 96 // Provides colors and stuff.
98 GtkThemeService* theme_service_; 97 GtkThemeService* theme_service_;
99 98
100 // The popup bubble container. 99 // The popup bubble container.
101 BubbleGtk* bubble_; 100 BubbleGtk* bubble_;
102 101
103 Profile* profile_; 102 Profile* profile_;
104 103
105 TabContentsWrapper* tab_contents_wrapper_; 104 TabContents* tab_contents_;
106 105
107 // The browser object of the current window. This is needed to open the 106 // The browser object of the current window. This is needed to open the
108 // settings page in a new tab. 107 // settings page in a new tab.
109 Browser* browser_; 108 Browser* browser_;
110 109
111 // For secure connection |cert_id_| is set to the ID of the server 110 // For secure connection |cert_id_| is set to the ID of the server
112 // certificate. For non secure connections |cert_id_| is 0. 111 // certificate. For non secure connections |cert_id_| is 0.
113 int cert_id_; 112 int cert_id_;
114 113
115 // Container for the popup header content. 114 // Container for the popup header content.
(...skipping 12 matching lines...) Expand all
128 GtkWidget* first_visit_contents_; 127 GtkWidget* first_visit_contents_;
129 128
130 // The UI translates user actions to specific events and forwards them to the 129 // The UI translates user actions to specific events and forwards them to the
131 // |presenter_|. The |presenter_| handles these events and updates the UI. 130 // |presenter_|. The |presenter_| handles these events and updates the UI.
132 scoped_ptr<WebsiteSettings> presenter_; 131 scoped_ptr<WebsiteSettings> presenter_;
133 132
134 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); 133 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk);
135 }; 134 };
136 135
137 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_ 136 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/web_intent_picker_gtk.cc ('k') | chrome/browser/ui/gtk/website_settings_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698