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

Side by Side Diff: chrome/browser/instant/instant_confirm_dialog.h

Issue 5601003: Localize instant string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: translateable=false Created 10 years 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) 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 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10
9 #include "gfx/native_widget_types.h" 11 #include "gfx/native_widget_types.h"
10 12
11 class Profile; 13 class Profile;
12 14
13 namespace browser { 15 namespace browser {
14 16
15 // URL for learning more about instant. 17 // URL for learning more about instant.
16 extern const char kInstantLearnMoreURL[]; 18 std::string InstantLearnMoreURL();
sky 2010/12/03 16:18:29 Can we make this return a GURL now?
17 19
18 // Invoked from the opt-in and preferences when the user toggles instant. If the 20 // Invoked from the opt-in and preferences when the user toggles instant. If the
19 // instant confirm dialog hasn't been shown, it's shown. If the instant dialog 21 // instant confirm dialog hasn't been shown, it's shown. If the instant dialog
20 // has already been shown the dialog is not shown but the preference is toggled. 22 // has already been shown the dialog is not shown but the preference is toggled.
21 void ShowInstantConfirmDialogIfNecessary(gfx::NativeWindow parent, 23 void ShowInstantConfirmDialogIfNecessary(gfx::NativeWindow parent,
22 Profile* profile); 24 Profile* profile);
23 25
24 // Shows the platform specific dialog to confirm if the user really wants to 26 // Shows the platform specific dialog to confirm if the user really wants to
25 // enable instant. If the user accepts the dialog invoke 27 // enable instant. If the user accepts the dialog invoke
26 // InstantController::Enable. 28 // InstantController::Enable.
27 void ShowInstantConfirmDialog(gfx::NativeWindow parent, 29 void ShowInstantConfirmDialog(gfx::NativeWindow parent,
28 Profile* profile); 30 Profile* profile);
29 31
30 } // namespace browser 32 } // namespace browser
31 33
32 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_ 34 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/general_page_gtk.cc ('k') | chrome/browser/instant/instant_confirm_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698