diff options
author | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 03:42:23 +0000 |
---|---|---|
committer | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 03:42:23 +0000 |
commit | 24ac9f16048cd62ff769261f8204163bba922579 (patch) | |
tree | d617fcc468ec94e2588ca37aa73c1b4dce6a420c /views/widget/widget_utils.h | |
parent | 5f5d58a9635023d87a8acbe11c4aacc4fb387e14 (diff) | |
download | chromium_src-24ac9f16048cd62ff769261f8204163bba922579.zip chromium_src-24ac9f16048cd62ff769261f8204163bba922579.tar.gz chromium_src-24ac9f16048cd62ff769261f8204163bba922579.tar.bz2 |
Determine the theme for a widget in gtk from its parent,
instead of just using the defaul
BUG=chromium-os:4890
TEST=On ChromeOS, enable a theme, and open the find box. Check that the theme is applied.
Review URL: http://codereview.chromium.org/4705005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67210 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget_utils.h')
-rw-r--r-- | views/widget/widget_utils.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/views/widget/widget_utils.h b/views/widget/widget_utils.h new file mode 100644 index 0000000..78fdba9 --- /dev/null +++ b/views/widget/widget_utils.h @@ -0,0 +1,19 @@ +// 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. + +#ifndef VIEWS_WIDGET_WIDGET_UTILS_H_ +#define VIEWS_WIDGET_WIDGET_UTILS_H_ +#pragma once + +class ThemeProvider; + +namespace views { + +class Widget; + +ThemeProvider* GetWidgetThemeProvider(const Widget* widget); + +} // namespace views + +#endif // VIEWS_WIDGET_WIDGET_UTILS_H_ |