| OLD | NEW |
| 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 "chrome/browser/ui/website_settings_ui.h" | 9 #include "chrome/browser/ui/website_settings_ui.h" |
| 10 | 10 |
| 11 #include <gtk/gtk.h> | 11 #include <gtk/gtk.h> |
| 12 | 12 |
| 13 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" | 13 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" |
| 14 | 14 |
| 15 class Browser; | 15 class Browser; |
| 16 class BubbleGtk; | 16 class BubbleGtk; |
| 17 class GtkThemeService; |
| 17 class Profile; | 18 class Profile; |
| 18 class TabContentsWrapper; | 19 class TabContentsWrapper; |
| 19 class ThemeServiceGtk; | |
| 20 class WebsiteSettings; | 20 class WebsiteSettings; |
| 21 | 21 |
| 22 // GTK implementation of the website settings UI. The website settings UI is | 22 // GTK implementation of the website settings UI. The website settings UI is |
| 23 // displayed in a popup that is positioned relative the an anchor element. | 23 // displayed in a popup that is positioned relative the an anchor element. |
| 24 class WebsiteSettingsPopupGtk : public WebsiteSettingsUI, | 24 class WebsiteSettingsPopupGtk : public WebsiteSettingsUI, |
| 25 public BubbleDelegateGtk { | 25 public BubbleDelegateGtk { |
| 26 public: | 26 public: |
| 27 WebsiteSettingsPopupGtk(gfx::NativeWindow parent, | 27 WebsiteSettingsPopupGtk(gfx::NativeWindow parent, |
| 28 Profile* profile, | 28 Profile* profile, |
| 29 TabContentsWrapper* wrapper); | 29 TabContentsWrapper* wrapper); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Parent window. | 65 // Parent window. |
| 66 GtkWindow* parent_; | 66 GtkWindow* parent_; |
| 67 | 67 |
| 68 // The container that contains the content of the popup. | 68 // The container that contains the content of the popup. |
| 69 GtkWidget* contents_; | 69 GtkWidget* contents_; |
| 70 | 70 |
| 71 // The widget relative to which the popup is positioned. | 71 // The widget relative to which the popup is positioned. |
| 72 GtkWidget* anchor_; | 72 GtkWidget* anchor_; |
| 73 | 73 |
| 74 // Provides colors and stuff. | 74 // Provides colors and stuff. |
| 75 ThemeServiceGtk* theme_service_; | 75 GtkThemeService* theme_service_; |
| 76 | 76 |
| 77 // The popup bubble container. | 77 // The popup bubble container. |
| 78 BubbleGtk* bubble_; | 78 BubbleGtk* bubble_; |
| 79 | 79 |
| 80 Profile* profile_; | 80 Profile* profile_; |
| 81 | 81 |
| 82 TabContentsWrapper* tab_contents_wrapper_; | 82 TabContentsWrapper* tab_contents_wrapper_; |
| 83 | 83 |
| 84 // The browser object of the current window. This is needed to open the | 84 // The browser object of the current window. This is needed to open the |
| 85 // settings page in a new tab. | 85 // settings page in a new tab. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 98 GtkWidget* identity_tab_contents_; | 98 GtkWidget* identity_tab_contents_; |
| 99 | 99 |
| 100 // The UI translates user actions to specific events and forwards them to the | 100 // The UI translates user actions to specific events and forwards them to the |
| 101 // |presenter_|. The |presenter_| handles these events and updates the UI. | 101 // |presenter_|. The |presenter_| handles these events and updates the UI. |
| 102 WebsiteSettings* presenter_; | 102 WebsiteSettings* presenter_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); | 104 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_ | 107 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_ |
| OLD | NEW |