Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.cc

Issue 12315139: Sort out build dependencies for LinuxUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.h ('k') | chrome/browser/ui/libgtk2ui/libgtk2ui.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
969 973
970 void Gtk2UI::ClearAllThemeData() { 974 void Gtk2UI::ClearAllThemeData() {
971 STLDeleteValues(&gtk_images_); 975 STLDeleteValues(&gtk_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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.h ('k') | chrome/browser/ui/libgtk2ui/libgtk2ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698