summaryrefslogtreecommitdiffstats
path: root/ui/gfx/native_theme_gtk.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix views examples crash by returning appropriate colors from GetSystemColor().tfarina@chromium.org2012-02-041-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following crash: [0203/175206:FATAL:native_theme_gtk.cc(43)] Check failed: false. Invalid color_id: 4 Backtrace: base::debug::StackTrace::StackTrace() [0x7f87a16293c6] logging::LogMessage::~LogMessage() [0x7f87a1656032] gfx::NativeThemeGtk::GetSystemColor() [0x7f87a1cb7c32] views::TextButtonBase::TextButtonBase() [0x7f87a1ea1090] views::TextButton::TextButton() [0x7f87a1ea25ec] views::examples::TreeViewExample::CreateExampleView() [0x44253b] views::examples::(anonymous namespace)::ContainerView::ViewHierarchyChanged() [0x449f6a] views::View::ViewHierarchyChangedImpl() [0x7f87a1f13027] views::View::PropagateAddNotifications() [0x7f87a1f12e75] views::View::PropagateAddNotifications() [0x7f87a1f12e40] views::View::AddChildViewAt() [0x7f87a1f0d375] views::View::AddChildView() [0x7f87a1f0d09f] views::GridLayout::AddViewState() [0x7f87a1f04589] views::GridLayout::AddView() [0x7f87a1f0335b] views::GridLayout::AddView() [0x7f87a1f03146] views::GridLayout::AddView() [0x7f87a1f030e9] views::GridLayout::AddView() [0x7f87a1f02fa2] views::examples::ExamplesWindowContents::InitExamplesWindow() [0x4370de] views::examples::ExamplesWindowContents::ViewHierarchyChanged() [0x436cc1] views::View::ViewHierarchyChangedImpl() [0x7f87a1f13027] views::View::PropagateAddNotifications() [0x7f87a1f12e75] views::View::AddChildViewAt() [0x7f87a1f0d375] views::ClientView::ViewHierarchyChanged() [0x7f87a1f327e4] views::View::ViewHierarchyChangedImpl() [0x7f87a1f13027] views::View::PropagateAddNotifications() [0x7f87a1f12e75] views::View::AddChildViewAt() [0x7f87a1f0d375] views::NonClientView::ViewHierarchyChanged() [0x7f87a1f38de4] views::View::ViewHierarchyChangedImpl() [0x7f87a1f13027] views::View::PropagateAddNotifications() [0x7f87a1f12e75] views::View::AddChildViewAt() [0x7f87a1f0d375] views::View::AddChildView() [0x7f87a1f0d09f] views::internal::RootView::SetContentsView() [0x7f87a1f1cce4] views::Widget::SetContentsView() [0x7f87a1f2b522] views::Widget::Init() [0x7f87a1f2b187] views::Widget::CreateWindowWithParentAndBounds() [0x7f87a1f2ad0a] views::Widget::CreateWindowWithBounds() [0x7f87a1f2ac93] views::examples::ShowExamplesWindow() [0x43652b] main [0x412388] 0x7f879cb6aeff 0x412099 Trace/breakpoint trap R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9307091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120468 0039d316-1c4b-4281-b951-d872f2087c98
* Quick, hopefully temporary, fix for chromium issue 105609 and chromium-os ↵benrg@chromium.org2011-11-291-1/+3
| | | | | | | | | | | | issue 23461. BUG=105609 TEST=dialog colors should be correct again Review URL: http://codereview.chromium.org/8725010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111842 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new GetSystemColor method to native theme.benrg@chromium.org2011-11-231-0/+25
| | | | | | | | | | | | | | | Currently it only knows about the dialog box background color. The intent is to add other colors, such as the text highlighting color (issue 100229). This CL also fixes issue 104229 by returning an opaque color on Aura. BUG=104229 TEST=none Review URL: http://codereview.chromium.org/8597015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111268 0039d316-1c4b-4281-b951-d872f2087c98
* Fix statics in NativeTheme*::instance() to avoid destruction post maindhollowa@chromium.org2011-11-161-0/+2
| | | | | | | | | | | | | | | | | | | Intentionally leaks NativeTheme* singletons to avoid destructor firing after main. Memory bots will need suppressions for this. Avoids clang error: time make -k -j16 compositor_unittests CXX(target) out/Debug/obj.target/ui/ui/gfx/native_theme_aura.o ui/gfx/native_theme_aura.cc:27:32: error: declaration requires an exit-time destructor [-Werror,-Wexit-time-destructors] static const NativeThemeAura s_native_theme; BUG=none TEST=compiles under clang -Wexit-time-destructors R=jamescook@chromium.org, ben@chromium.org Review URL: http://codereview.chromium.org/8520026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110334 0039d316-1c4b-4281-b951-d872f2087c98
* Remove 4 exit time destructors from ui and content for linux and chromeos.thakis@chromium.org2011-11-091-1/+1
| | | | | | | | | | BUG=10600 TEST=none TBR=ben Review URL: http://codereview.chromium.org/8510019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109271 0039d316-1c4b-4281-b951-d872f2087c98
* Aura - Add NativeThemeAura, extract NativeThemeGtk, add sample widget window.jamescook@chromium.org2011-10-101-0/+26
+ Add native_theme_aura and native_theme_gtk, fix button background colors + Fix native_theme_chromeos instance generation + Rename button-related image resources + Rename class NativeThemeLinux to NativeThemeBase + Add window showing sample widgets BUG=98305 TEST=manual Review URL: http://codereview.chromium.org/8199021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104803 0039d316-1c4b-4281-b951-d872f2087c98