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

Side by Side Diff: chrome/browser/gtk/go_button_gtk.cc

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/gtk/find_bar_gtk.cc ('k') | chrome/browser/gtk/menu_gtk.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/go_button_gtk.h" 5 #include "chrome/browser/gtk/go_button_gtk.h"
6
7 #include "app/l10n_util.h"
6 #include "base/logging.h" 8 #include "base/logging.h"
7 #include "base/message_loop.h" 9 #include "base/message_loop.h"
8 #include "chrome/app/chrome_dll_resource.h" 10 #include "chrome/app/chrome_dll_resource.h"
9 #include "chrome/browser/browser.h" 11 #include "chrome/browser/browser.h"
10 #include "chrome/browser/gtk/location_bar_view_gtk.h" 12 #include "chrome/browser/gtk/location_bar_view_gtk.h"
11 #include "chrome/common/l10n_util.h"
12 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
13 #include "grit/theme_resources.h" 14 #include "grit/theme_resources.h"
14 15
15 GoButtonGtk::GoButtonGtk(LocationBarViewGtk* location_bar, Browser* browser) 16 GoButtonGtk::GoButtonGtk(LocationBarViewGtk* location_bar, Browser* browser)
16 : location_bar_(location_bar), 17 : location_bar_(location_bar),
17 browser_(browser), 18 browser_(browser),
18 button_delay_(0), 19 button_delay_(0),
19 stop_timer_(this), 20 stop_timer_(this),
20 intended_mode_(MODE_GO), 21 intended_mode_(MODE_GO),
21 visible_mode_(MODE_GO), 22 visible_mode_(MODE_GO),
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 widget_.get(), 162 widget_.get(),
162 true ? l10n_util::GetStringFUTF8( 163 true ? l10n_util::GetStringFUTF8(
163 IDS_TOOLTIP_GO_SITE, WideToUTF16(current_text)).c_str() : 164 IDS_TOOLTIP_GO_SITE, WideToUTF16(current_text)).c_str() :
164 l10n_util::GetStringFUTF8(IDS_TOOLTIP_GO_SEARCH, UTF8ToUTF16("Google"), 165 l10n_util::GetStringFUTF8(IDS_TOOLTIP_GO_SEARCH, UTF8ToUTF16("Google"),
165 WideToUTF16(current_text)).c_str()); 166 WideToUTF16(current_text)).c_str());
166 } else { 167 } else {
167 gtk_widget_set_tooltip_text( 168 gtk_widget_set_tooltip_text(
168 widget_.get(), l10n_util::GetStringUTF8(IDS_TOOLTIP_STOP).c_str()); 169 widget_.get(), l10n_util::GetStringUTF8(IDS_TOOLTIP_STOP).c_str());
169 } 170 }
170 } 171 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/find_bar_gtk.cc ('k') | chrome/browser/gtk/menu_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698