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

Side by Side Diff: chrome/browser/ui/views/first_run_search_engine_view.cc

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
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/views/first_run_search_engine_view.h" 5 #include "chrome/browser/ui/views/first_run_search_engine_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 NULL, 67 NULL,
68 gfx::Rect(), 68 gfx::Rect(),
69 new FirstRunSearchEngineView( 69 new FirstRunSearchEngineView(
70 profile, randomize_search_engine_experiment)); 70 profile, randomize_search_engine_experiment));
71 DCHECK(window); 71 DCHECK(window);
72 72
73 window->SetIsAlwaysOnTop(true); 73 window->SetIsAlwaysOnTop(true);
74 window->Show(); 74 window->Show();
75 views::AcceleratorHandler accelerator_handler; 75 views::AcceleratorHandler accelerator_handler;
76 MessageLoopForUI::current()->Run(&accelerator_handler); 76 MessageLoopForUI::current()->Run(&accelerator_handler);
77 window->CloseWindow(); 77 window->Close();
78 } 78 }
79 79
80 } // namespace first_run 80 } // namespace first_run
81 81
82 SearchEngineChoice::SearchEngineChoice(views::ButtonListener* listener, 82 SearchEngineChoice::SearchEngineChoice(views::ButtonListener* listener,
83 const TemplateURL* search_engine, 83 const TemplateURL* search_engine,
84 bool use_small_logos) 84 bool use_small_logos)
85 : NativeButton( 85 : NativeButton(
86 listener, 86 listener,
87 UTF16ToWide(l10n_util::GetStringUTF16(IDS_FR_SEARCH_CHOOSE))), 87 UTF16ToWide(l10n_util::GetStringUTF16(IDS_FR_SEARCH_CHOOSE))),
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 } 458 }
459 459
460 void FirstRunSearchEngineView::GetAccessibleState( 460 void FirstRunSearchEngineView::GetAccessibleState(
461 ui::AccessibleViewState* state) { 461 ui::AccessibleViewState* state) {
462 state->role = ui::AccessibilityTypes::ROLE_ALERT; 462 state->role = ui::AccessibilityTypes::ROLE_ALERT;
463 } 463 }
464 464
465 std::wstring FirstRunSearchEngineView::GetWindowTitle() const { 465 std::wstring FirstRunSearchEngineView::GetWindowTitle() const {
466 return UTF16ToWide(l10n_util::GetStringUTF16(IDS_FIRSTRUN_DLG_TITLE)); 466 return UTF16ToWide(l10n_util::GetStringUTF16(IDS_FIRSTRUN_DLG_TITLE));
467 } 467 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/first_run_bubble.cc ('k') | chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698