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

Side by Side Diff: chrome/browser/ui/gtk/sad_tab_gtk.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
OLDNEW
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/ui/gtk/sad_tab_gtk.h" 5 #include "chrome/browser/ui/gtk/sad_tab_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h"
11 #include "chrome/browser/google/google_util.h" 10 #include "chrome/browser/google/google_util.h"
12 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" 12 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h"
14 #include "chrome/browser/ui/gtk/gtk_util.h" 13 #include "chrome/browser/ui/gtk/gtk_util.h"
15 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
16 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
17 #include "grit/locale_settings.h" 16 #include "grit/locale_settings.h"
18 #include "grit/theme_resources.h" 17 #include "grit/theme_resources.h"
18 #include "ui/base/resource/resource_bundle.h"
19 19
20 namespace { 20 namespace {
21 21
22 // Background color of the content (a grayish blue) for a crashed tab. 22 // Background color of the content (a grayish blue) for a crashed tab.
23 const GdkColor kCrashedBackgroundColor = GDK_COLOR_RGB(35, 48, 64); 23 const GdkColor kCrashedBackgroundColor = GDK_COLOR_RGB(35, 48, 64);
24 24
25 // Background color of the content (a grayish purple) for a killed 25 // Background color of the content (a grayish purple) for a killed
26 // tab. TODO(gspencer): update this for the "real" color when the UI 26 // tab. TODO(gspencer): update this for the "real" color when the UI
27 // team provides one. See http://crosbug.com/10711 27 // team provides one. See http://crosbug.com/10711
28 const GdkColor kKilledBackgroundColor = GDK_COLOR_RGB(57, 48, 88); 28 const GdkColor kKilledBackgroundColor = GDK_COLOR_RGB(57, 48, 88);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void SadTabGtk::OnLinkButtonClick(GtkWidget* sender) { 130 void SadTabGtk::OnLinkButtonClick(GtkWidget* sender) {
131 if (tab_contents_ != NULL) { 131 if (tab_contents_ != NULL) {
132 GURL help_url = 132 GURL help_url =
133 google_util::AppendGoogleLocaleParam(GURL( 133 google_util::AppendGoogleLocaleParam(GURL(
134 kind_ == CRASHED ? 134 kind_ == CRASHED ?
135 chrome::kCrashReasonURL : 135 chrome::kCrashReasonURL :
136 chrome::kKillReasonURL)); 136 chrome::kKillReasonURL));
137 tab_contents_->OpenURL(help_url, GURL(), CURRENT_TAB, PageTransition::LINK); 137 tab_contents_->OpenURL(help_url, GURL(), CURRENT_TAB, PageTransition::LINK);
138 } 138 }
139 } 139 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/overflow_button.cc ('k') | chrome/browser/ui/gtk/status_icons/status_tray_gtk_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698