OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |