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

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

Issue 3142020: Changed ChromeOS status bar menu handlers to obey --enable-tabbed-options swi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/chromeos/frame/browser_view.cc ('k') | chrome/browser/options_window.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/first_run_bubble.h" 5 #include "chrome/browser/gtk/first_run_bubble.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/gtk_util.h" 9 #include "app/gtk_util.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
11 #include "base/command_line.h"
11 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
12 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/browser.h"
15 #include "chrome/browser/browser_list.h"
13 #include "chrome/browser/gtk/gtk_theme_provider.h" 16 #include "chrome/browser/gtk/gtk_theme_provider.h"
14 #include "chrome/browser/options_window.h"
15 #include "chrome/browser/search_engines/util.h" 17 #include "chrome/browser/search_engines/util.h"
16 #include "chrome/common/notification_service.h" 18 #include "chrome/common/notification_service.h"
17 #include "gfx/gtk_util.h" 19 #include "gfx/gtk_util.h"
18 #include "grit/chromium_strings.h" 20 #include "grit/chromium_strings.h"
19 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
20 #include "grit/locale_settings.h" 22 #include "grit/locale_settings.h"
21 23
22 namespace { 24 namespace {
23 // Markup for the text of the Omnibox search label 25 // Markup for the text of the Omnibox search label
24 const char kSearchLabelMarkup[] = "<big><b>%s</b></big>"; 26 const char kSearchLabelMarkup[] = "<big><b>%s</b></big>";
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 theme_provider_->InitThemesFor(this); 166 theme_provider_->InitThemesFor(this);
165 } 167 }
166 168
167 void FirstRunBubble::HandleDestroy(GtkWidget* sender) { 169 void FirstRunBubble::HandleDestroy(GtkWidget* sender) {
168 content_ = NULL; 170 content_ = NULL;
169 delete this; 171 delete this;
170 } 172 }
171 173
172 void FirstRunBubble::HandleKeepButton(GtkWidget* sender) { 174 void FirstRunBubble::HandleKeepButton(GtkWidget* sender) {
173 bubble_->Close(); 175 bubble_->Close();
176 }
174 177
175 }
176 void FirstRunBubble::HandleChangeButton(GtkWidget* sender) { 178 void FirstRunBubble::HandleChangeButton(GtkWidget* sender) {
177 bubble_->Close(); 179 bubble_->Close();
178 ShowOptionsWindow(OPTIONS_PAGE_GENERAL, OPTIONS_GROUP_DEFAULT_SEARCH, 180 Browser* browser = BrowserList::GetLastActive();
179 profile_); 181 DCHECK(browser);
182 browser->OpenSearchEngineOptionsDialog();
180 } 183 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/frame/browser_view.cc ('k') | chrome/browser/options_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698