| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gtk/bookmark_bar_instructions_gtk.h" | 5 #include "chrome/browser/ui/gtk/bookmark_bar_instructions_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | 9 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
| 10 #include "chrome/browser/gtk/gtk_chrome_shrinkable_hbox.h" | 10 #include "chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.h" |
| 11 #include "chrome/browser/gtk/gtk_theme_provider.h" | 11 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 12 #include "chrome/browser/gtk/gtk_util.h" | 12 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 13 #include "chrome/common/notification_service.h" | 13 #include "chrome/common/notification_service.h" |
| 14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 15 | 15 |
| 16 BookmarkBarInstructionsGtk::BookmarkBarInstructionsGtk(Delegate* delegate, | 16 BookmarkBarInstructionsGtk::BookmarkBarInstructionsGtk(Delegate* delegate, |
| 17 Profile* profile) | 17 Profile* profile) |
| 18 : delegate_(delegate), | 18 : delegate_(delegate), |
| 19 profile_(profile), | 19 profile_(profile), |
| 20 theme_provider_(GtkThemeProvider::GetFrom(profile_)) { | 20 theme_provider_(GtkThemeProvider::GetFrom(profile_)) { |
| 21 instructions_hbox_ = gtk_chrome_shrinkable_hbox_new(FALSE, FALSE, 0); | 21 instructions_hbox_ = gtk_chrome_shrinkable_hbox_new(FALSE, FALSE, 0); |
| 22 gtk_widget_set_size_request(instructions_hbox_, 0, -1); | 22 gtk_widget_set_size_request(instructions_hbox_, 0, -1); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 BrowserThemeProvider::GetDefaultColor( | 84 BrowserThemeProvider::GetDefaultColor( |
| 85 BrowserThemeProvider::COLOR_BOOKMARK_TEXT)) { | 85 BrowserThemeProvider::COLOR_BOOKMARK_TEXT)) { |
| 86 gtk_chrome_link_button_set_normal_color( | 86 gtk_chrome_link_button_set_normal_color( |
| 87 GTK_CHROME_LINK_BUTTON(instructions_link_), NULL); | 87 GTK_CHROME_LINK_BUTTON(instructions_link_), NULL); |
| 88 } else { | 88 } else { |
| 89 gtk_chrome_link_button_set_normal_color( | 89 gtk_chrome_link_button_set_normal_color( |
| 90 GTK_CHROME_LINK_BUTTON(instructions_link_), &bookmark_color); | 90 GTK_CHROME_LINK_BUTTON(instructions_link_), &bookmark_color); |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 } | 93 } |
| OLD | NEW |