OLD | NEW |
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 "chrome/browser/ui/libgtk2ui/gtk2_ui.h" | 5 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 bool Gtk2UI::GetColor(int id, SkColor* color) const { | 327 bool Gtk2UI::GetColor(int id, SkColor* color) const { |
328 ColorMap::const_iterator it = colors_.find(id); | 328 ColorMap::const_iterator it = colors_.find(id); |
329 if (it != colors_.end()) { | 329 if (it != colors_.end()) { |
330 *color = it->second; | 330 *color = it->second; |
331 return true; | 331 return true; |
332 } | 332 } |
333 | 333 |
334 return false; | 334 return false; |
335 } | 335 } |
336 | 336 |
| 337 ui::NativeTheme* Gtk2UI::GetNativeTheme() const { |
| 338 return NULL; |
| 339 } |
| 340 |
337 ui::SelectFileDialog* Gtk2UI::CreateSelectFileDialog( | 341 ui::SelectFileDialog* Gtk2UI::CreateSelectFileDialog( |
338 ui::SelectFileDialog::Listener* listener, | 342 ui::SelectFileDialog::Listener* listener, |
339 ui::SelectFilePolicy* policy) const { | 343 ui::SelectFilePolicy* policy) const { |
340 return SelectFileDialogImpl::Create(listener, policy); | 344 return SelectFileDialogImpl::Create(listener, policy); |
341 } | 345 } |
342 | 346 |
343 void Gtk2UI::GetScrollbarColors(GdkColor* thumb_active_color, | 347 void Gtk2UI::GetScrollbarColors(GdkColor* thumb_active_color, |
344 GdkColor* thumb_inactive_color, | 348 GdkColor* thumb_inactive_color, |
345 GdkColor* track_color) { | 349 GdkColor* track_color) { |
346 const GdkColor* theme_thumb_active = NULL; | 350 const GdkColor* theme_thumb_active = NULL; |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 | 973 |
970 void Gtk2UI::ClearAllThemeData() { | 974 void Gtk2UI::ClearAllThemeData() { |
971 STLDeleteValues(>k_images_); | 975 STLDeleteValues(>k_images_); |
972 } | 976 } |
973 | 977 |
974 } // namespace libgtk2ui | 978 } // namespace libgtk2ui |
975 | 979 |
976 ui::LinuxUI* BuildGtk2UI() { | 980 ui::LinuxUI* BuildGtk2UI() { |
977 return new libgtk2ui::Gtk2UI; | 981 return new libgtk2ui::Gtk2UI; |
978 } | 982 } |
OLD | NEW |