diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 22:01:30 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 22:01:30 +0000 |
commit | 58bd785c9261089a97ea3e43c842d24bfea96e7e (patch) | |
tree | 9bc0cd068af1f952b38f2d73aa98ff8af57b854f /chrome/browser/notifications | |
parent | 70fd64f374d6c72889f2904fe8cd6e6a71a3a3a1 (diff) | |
download | chromium_src-58bd785c9261089a97ea3e43c842d24bfea96e7e.zip chromium_src-58bd785c9261089a97ea3e43c842d24bfea96e7e.tar.gz chromium_src-58bd785c9261089a97ea3e43c842d24bfea96e7e.tar.bz2 |
Create a valid RendererPreferences for notification windows.
On linux, Notifications now have the correct select color, scrollbar properties and
font anti-aliasing properties.
BUG=41674
TEST=Try to highlight text in a notification. It should be highlighted.
Review URL: http://codereview.chromium.org/1613019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44709 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r-- | chrome/browser/notifications/balloon_host.cc | 6 | ||||
-rw-r--r-- | chrome/browser/notifications/balloon_host.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc index 541d5a4..845ebee 100644 --- a/chrome/browser/notifications/balloon_host.cc +++ b/chrome/browser/notifications/balloon_host.cc @@ -111,6 +111,12 @@ void BalloonHost::UpdatePreferredSize(const gfx::Size& new_size) { balloon_->SetContentPreferredSize(new_size); } +RendererPreferences BalloonHost::GetRendererPrefs(Profile* profile) const { + RendererPreferences preferences; + renderer_preferences_util::UpdateFromSystemSettings(&preferences, profile); + return preferences; +} + void BalloonHost::Init() { DCHECK(!render_view_host_) << "BalloonViewHost already initialized."; int64 session_storage_namespace_id = balloon_->profile()->GetWebKitContext()-> diff --git a/chrome/browser/notifications/balloon_host.h b/chrome/browser/notifications/balloon_host.h index c267bc4..4c4aad8 100644 --- a/chrome/browser/notifications/balloon_host.h +++ b/chrome/browser/notifications/balloon_host.h @@ -104,9 +104,7 @@ class BalloonHost : public RenderViewHostDelegate, virtual void HandleMouseEvent() {} virtual void HandleMouseLeave() {} virtual void UpdatePreferredSize(const gfx::Size& pref_size); - virtual RendererPreferences GetRendererPrefs(Profile* profile) const { - return RendererPreferences(); - } + virtual RendererPreferences GetRendererPrefs(Profile* profile) const; protected: // Must override in platform specific implementations. |