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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc

Issue 10828198: Update oauth strings for extension install UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/extensions/bundle_installer.h" 10 #include "chrome/browser/extensions/bundle_installer.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 namespace browser { 78 namespace browser {
79 79
80 // Displays the dialog when constructed, deletes itself when dialog is 80 // Displays the dialog when constructed, deletes itself when dialog is
81 // dismissed. Success/failure is passed back through the 81 // dismissed. Success/failure is passed back through the
82 // ExtensionInstallPrompt::Delegate instance. 82 // ExtensionInstallPrompt::Delegate instance.
83 class ExtensionInstallDialog { 83 class ExtensionInstallDialog {
84 public: 84 public:
85 ExtensionInstallDialog(gfx::NativeWindow parent, 85 ExtensionInstallDialog(gfx::NativeWindow parent,
86 content::PageNavigator* navigator, 86 content::PageNavigator* navigator,
87 ExtensionInstallPrompt::Delegate *delegate, 87 ExtensionInstallPrompt::Delegate* delegate,
88 const ExtensionInstallPrompt::Prompt& prompt); 88 const ExtensionInstallPrompt::Prompt& prompt);
89 private: 89 private:
90 ~ExtensionInstallDialog(); 90 ~ExtensionInstallDialog();
91 91
92 CHROMEGTK_CALLBACK_1(ExtensionInstallDialog, void, OnResponse, int); 92 CHROMEGTK_CALLBACK_1(ExtensionInstallDialog, void, OnResponse, int);
93 CHROMEGTK_CALLBACK_0(ExtensionInstallDialog, void, OnStoreLinkClick); 93 CHROMEGTK_CALLBACK_0(ExtensionInstallDialog, void, OnStoreLinkClick);
94 94
95 GtkWidget* CreateWidgetForIssueAdvice( 95 GtkWidget* CreateWidgetForIssueAdvice(
96 const IssueAdviceInfoEntry& issue_advice, int pixel_width); 96 const IssueAdviceInfoEntry& issue_advice, int pixel_width);
97 97
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 } // namespace browser 379 } // namespace browser
380 380
381 void ShowExtensionInstallDialogImpl( 381 void ShowExtensionInstallDialogImpl(
382 gfx::NativeWindow parent, 382 gfx::NativeWindow parent,
383 content::PageNavigator* navigator, 383 content::PageNavigator* navigator,
384 ExtensionInstallPrompt::Delegate* delegate, 384 ExtensionInstallPrompt::Delegate* delegate,
385 const ExtensionInstallPrompt::Prompt& prompt) { 385 const ExtensionInstallPrompt::Prompt& prompt) {
386 new browser::ExtensionInstallDialog(parent, navigator, delegate, prompt); 386 new browser::ExtensionInstallDialog(parent, navigator, delegate, prompt);
387 } 387 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698