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

Unified Diff: chrome/browser/gtk/back_forward_button_gtk.cc

Issue 2847079: Remove support for background masks. These are no longer necessary in the ne... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/back_forward_button_gtk.cc
===================================================================
--- chrome/browser/gtk/back_forward_button_gtk.cc (revision 53847)
+++ chrome/browser/gtk/back_forward_button_gtk.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// 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.
@@ -26,14 +26,13 @@
: browser_(browser),
is_forward_(is_forward),
show_menu_factory_(this) {
- int normal, pushed, hover, disabled, background, tooltip;
+ int normal, pushed, hover, disabled, tooltip;
const char* stock;
if (is_forward) {
normal = IDR_FORWARD;
pushed = IDR_FORWARD_P;
hover = IDR_FORWARD_H;
disabled = IDR_FORWARD_D;
- background = IDR_FORWARD_MASK;
tooltip = IDS_TOOLTIP_FORWARD;
stock = GTK_STOCK_GO_FORWARD;
} else {
@@ -41,14 +40,12 @@
pushed = IDR_BACK_P;
hover = IDR_BACK_H;
disabled = IDR_BACK_D;
- background = IDR_BACK_MASK;
tooltip = IDS_TOOLTIP_BACK;
stock = GTK_STOCK_GO_BACK;
}
button_.reset(new CustomDrawButton(
GtkThemeProvider::GetFrom(browser_->profile()),
- normal, pushed, hover, disabled, background, stock,
- GTK_ICON_SIZE_SMALL_TOOLBAR));
+ normal, pushed, hover, disabled, stock, GTK_ICON_SIZE_SMALL_TOOLBAR));
gtk_widget_set_tooltip_text(widget(),
l10n_util::GetStringUTF8(tooltip).c_str());
menu_model_.reset(new BackForwardMenuModel(browser, is_forward ?
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698