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

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

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/gtk/overflow_button.cc ('k') | chrome/browser/ui/gtk/reload_button_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <gtk/gtk.h> 5 #include <gtk/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/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/certificate_viewer.h" 11 #include "chrome/browser/certificate_viewer.h"
12 #include "chrome/browser/page_info_model.h" 12 #include "chrome/browser/page_info_model.h"
13 #include "chrome/browser/page_info_model_observer.h" 13 #include "chrome/browser/page_info_model_observer.h"
14 #include "chrome/browser/ui/browser_list.h" 14 #include "chrome/browser/ui/browser_list.h"
15 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h" 15 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h"
16 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 16 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
17 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 17 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
18 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" 18 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h"
19 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
20 #include "chrome/browser/ui/gtk/gtk_util.h" 19 #include "chrome/browser/ui/gtk/gtk_util.h"
21 #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/gtk/theme_service_gtk.h"
22 #include "chrome/common/url_constants.h" 22 #include "chrome/common/url_constants.h"
23 #include "content/public/common/ssl_status.h" 23 #include "content/public/common/ssl_status.h"
24 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "grit/locale_settings.h" 26 #include "grit/locale_settings.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 29
30 using content::OpenURLParams; 30 using content::OpenURLParams;
31 31
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Parent window. 72 // Parent window.
73 GtkWindow* parent_; 73 GtkWindow* parent_;
74 74
75 // The virtual box containing the sections. 75 // The virtual box containing the sections.
76 GtkWidget* contents_; 76 GtkWidget* contents_;
77 77
78 // The widget relative to which we are positioned. 78 // The widget relative to which we are positioned.
79 GtkWidget* anchor_; 79 GtkWidget* anchor_;
80 80
81 // Provides colors and stuff. 81 // Provides colors and stuff.
82 GtkThemeService* theme_service_; 82 ThemeServiceGtk* theme_service_;
83 83
84 BubbleGtk* bubble_; 84 BubbleGtk* bubble_;
85 85
86 Profile* profile_; 86 Profile* profile_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleGtk); 88 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleGtk);
89 }; 89 };
90 90
91 PageInfoBubbleGtk::PageInfoBubbleGtk(gfx::NativeWindow parent, 91 PageInfoBubbleGtk::PageInfoBubbleGtk(gfx::NativeWindow parent,
92 Profile* profile, 92 Profile* profile,
93 const GURL& url, 93 const GURL& url,
94 const SSLStatus& ssl, 94 const SSLStatus& ssl,
95 bool show_history) 95 bool show_history)
96 : ALLOW_THIS_IN_INITIALIZER_LIST(model_(profile, url, ssl, 96 : ALLOW_THIS_IN_INITIALIZER_LIST(model_(profile, url, ssl,
97 show_history, this)), 97 show_history, this)),
98 url_(url), 98 url_(url),
99 cert_id_(ssl.cert_id), 99 cert_id_(ssl.cert_id),
100 parent_(parent), 100 parent_(parent),
101 contents_(NULL), 101 contents_(NULL),
102 theme_service_(GtkThemeService::GetFrom(profile)), 102 theme_service_(ThemeServiceGtk::GetFrom(profile)),
103 profile_(profile) { 103 profile_(profile) {
104 BrowserWindowGtk* browser_window = 104 BrowserWindowGtk* browser_window =
105 BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent); 105 BrowserWindowGtk::GetBrowserWindowForNativeWindow(parent);
106 106
107 anchor_ = browser_window-> 107 anchor_ = browser_window->
108 GetToolbar()->GetLocationBarView()->location_icon_widget(); 108 GetToolbar()->GetLocationBarView()->location_icon_widget();
109 109
110 InitContents(); 110 InitContents();
111 111
112 BubbleGtk::ArrowLocationGtk arrow_location = base::i18n::IsRTL() ? 112 BubbleGtk::ArrowLocationGtk arrow_location = base::i18n::IsRTL() ?
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 void ShowPageInfoBubble(gfx::NativeWindow parent, 241 void ShowPageInfoBubble(gfx::NativeWindow parent,
242 Profile* profile, 242 Profile* profile,
243 const GURL& url, 243 const GURL& url,
244 const SSLStatus& ssl, 244 const SSLStatus& ssl,
245 bool show_history) { 245 bool show_history) {
246 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history); 246 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history);
247 } 247 }
248 248
249 } // namespace browser 249 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/overflow_button.cc ('k') | chrome/browser/ui/gtk/reload_button_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698