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

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

Issue 10337010: Revert r123782. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | 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 #include "chrome/browser/ui/gtk/website_settings_popup_gtk.h" 5 #include "chrome/browser/ui/gtk/website_settings_popup_gtk.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/certificate_viewer.h" 12 #include "chrome/browser/certificate_viewer.h"
13 #include "chrome/browser/ui/browser_list.h" 13 #include "chrome/browser/ui/browser_list.h"
14 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h" 14 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h"
15 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 15 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
16 #include "chrome/browser/ui/gtk/collected_cookies_gtk.h" 16 #include "chrome/browser/ui/gtk/collected_cookies_gtk.h"
17 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" 17 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h"
18 #include "chrome/browser/ui/gtk/gtk_util.h" 18 #include "chrome/browser/ui/gtk/gtk_util.h"
19 #include "chrome/browser/ui/gtk/theme_service_gtk.h" 19 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
20 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" 20 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h"
21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
22 #include "chrome/browser/website_settings.h" 22 #include "chrome/browser/website_settings.h"
23 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
24 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
25 #include "grit/locale_settings.h" 25 #include "grit/locale_settings.h"
26 #include "grit/theme_resources.h" 26 #include "grit/theme_resources.h"
27 #include "ui/base/gtk/gtk_hig_constants.h" 27 #include "ui/base/gtk/gtk_hig_constants.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 #include "ui/base/resource/resource_bundle.h" 29 #include "ui/base/resource/resource_bundle.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 } // namespace 69 } // namespace
70 70
71 WebsiteSettingsPopupGtk::WebsiteSettingsPopupGtk( 71 WebsiteSettingsPopupGtk::WebsiteSettingsPopupGtk(
72 gfx::NativeWindow parent, 72 gfx::NativeWindow parent,
73 Profile* profile, 73 Profile* profile,
74 TabContentsWrapper* tab_contents_wrapper) 74 TabContentsWrapper* tab_contents_wrapper)
75 : parent_(parent), 75 : parent_(parent),
76 contents_(NULL), 76 contents_(NULL),
77 theme_service_(ThemeServiceGtk::GetFrom(profile)), 77 theme_service_(GtkThemeService::GetFrom(profile)),
78 profile_(profile), 78 profile_(profile),
79 tab_contents_wrapper_(tab_contents_wrapper), 79 tab_contents_wrapper_(tab_contents_wrapper),
80 browser_(NULL), 80 browser_(NULL),
81 header_box_(NULL), 81 header_box_(NULL),
82 cookies_section_contents_(NULL), 82 cookies_section_contents_(NULL),
83 permissions_section_contents_(NULL), 83 permissions_section_contents_(NULL),
84 identity_tab_contents_(NULL), 84 identity_tab_contents_(NULL),
85 presenter_(NULL) { 85 presenter_(NULL) {
86 BrowserWindowGtk* browser_window = 86 BrowserWindowGtk* browser_window =
87 BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent); 87 BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent);
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 GTK_TREE_MODEL(gtk_combo_box_get_model(GTK_COMBO_BOX(widget))); 478 GTK_TREE_MODEL(gtk_combo_box_get_model(GTK_COMBO_BOX(widget)));
479 479
480 int value = -1; 480 int value = -1;
481 int type = -1; 481 int type = -1;
482 gtk_tree_model_get(store, &it, 1, &value, 2, &type, -1); 482 gtk_tree_model_get(store, &it, 1, &value, 2, &type, -1);
483 483
484 if (presenter_) 484 if (presenter_)
485 presenter_->OnSitePermissionChanged(ContentSettingsType(type), 485 presenter_->OnSitePermissionChanged(ContentSettingsType(type),
486 ContentSetting(value)); 486 ContentSetting(value));
487 } 487 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/website_settings_popup_gtk.h ('k') | chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698