diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 00:47:59 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 00:47:59 +0000 |
commit | ad02174ccfde818097757bef93c9ae6ea62c68bd (patch) | |
tree | 3d7190ae70d55bec354bab112ee6bcbcad7e29ad /views | |
parent | 05af3561d9685d9b54e4d2e4fe35b2c69bd6bec0 (diff) | |
download | chromium_src-ad02174ccfde818097757bef93c9ae6ea62c68bd.zip chromium_src-ad02174ccfde818097757bef93c9ae6ea62c68bd.tar.gz chromium_src-ad02174ccfde818097757bef93c9ae6ea62c68bd.tar.bz2 |
Move skia_utils_gtk.cc/.h to app/gfx/. Original patch by Thiago Farina (see http://codereview.chromium.org/660063 ), r=me.
BUG=22853
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/tabbed_pane/native_tabbed_pane_gtk.cc | 6 | ||||
-rw-r--r-- | views/controls/textfield/native_textfield_gtk.cc | 8 | ||||
-rw-r--r-- | views/window/dialog_client_view.cc | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc index 110a688..ffdeb5e 100644 --- a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc +++ b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -8,11 +8,11 @@ #include "app/gfx/canvas.h" #include "app/gfx/font.h" +#include "app/gfx/skia_utils_gtk.h" #include "app/resource_bundle.h" #include "base/logging.h" #include "base/stl_util-inl.h" #include "base/string_util.h" -#include "skia/ext/skia_utils_gtk.h" #include "views/background.h" #include "views/controls/tabbed_pane/tabbed_pane.h" #include "views/fill_layout.h" @@ -145,7 +145,7 @@ void NativeTabbedPaneGtk::DoAddTabAtIndex(int index, const std::wstring& title, gtk_widget_get_style(page_container->GetNativeView()); contents->set_background( Background::CreateSolidBackground( - skia::GdkColorToSkColor(window_style->bg[GTK_STATE_NORMAL]))); + gfx::GdkColorToSkColor(window_style->bg[GTK_STATE_NORMAL]))); } GtkWidget* page = page_container->GetNativeView(); diff --git a/views/controls/textfield/native_textfield_gtk.cc b/views/controls/textfield/native_textfield_gtk.cc index 026a6b7..e3732b5 100644 --- a/views/controls/textfield/native_textfield_gtk.cc +++ b/views/controls/textfield/native_textfield_gtk.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -8,8 +8,8 @@ #include "app/gfx/insets.h" #include "app/gfx/gtk_util.h" +#include "app/gfx/skia_utils_gtk.h" #include "base/string_util.h" -#include "skia/ext/skia_utils_gtk.h" #include "views/controls/textfield/textfield.h" namespace views { @@ -97,7 +97,7 @@ void NativeTextfieldGtk::UpdateTextColor() { gtk_widget_modify_text(native_view(), GTK_STATE_NORMAL, NULL); return; } - GdkColor gdk_color = skia::SkColorToGdkColor(textfield_->text_color()); + GdkColor gdk_color = gfx::SkColorToGdkColor(textfield_->text_color()); gtk_widget_modify_text(native_view(), GTK_STATE_NORMAL, &gdk_color); } @@ -108,7 +108,7 @@ void NativeTextfieldGtk::UpdateBackgroundColor() { gtk_widget_modify_base(native_view(), GTK_STATE_NORMAL, NULL); return; } - GdkColor gdk_color = skia::SkColorToGdkColor(textfield_->background_color()); + GdkColor gdk_color = gfx::SkColorToGdkColor(textfield_->background_color()); gtk_widget_modify_base(native_view(), GTK_STATE_NORMAL, &gdk_color); } diff --git a/views/window/dialog_client_view.cc b/views/window/dialog_client_view.cc index 3eac93c..f54ae32 100644 --- a/views/window/dialog_client_view.cc +++ b/views/window/dialog_client_view.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -16,11 +16,11 @@ #include "app/gfx/canvas.h" #include "app/gfx/font.h" +#include "app/gfx/skia_utils_gtk.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "base/keyboard_codes.h" #include "grit/app_strings.h" -#include "skia/ext/skia_utils_gtk.h" #include "views/controls/button/native_button.h" #include "views/standard_layout.h" #include "views/window/dialog_delegate.h" @@ -300,7 +300,7 @@ void DialogClientView::Paint(gfx::Canvas* canvas) { GtkWidget* widget = GetWidget()->GetNativeView(); if (GTK_IS_WINDOW(widget)) { GtkStyle* window_style = gtk_widget_get_style(widget); - canvas->FillRectInt(skia::GdkColorToSkColor( + canvas->FillRectInt(gfx::GdkColorToSkColor( window_style->bg[GTK_STATE_NORMAL]), 0, 0, width(), height()); } |