OLD | NEW |
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 <gtk/gtk.h> | 5 #include <gtk/gtk.h> |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/extensions/extension_install_dialog.h" | 9 #include "chrome/browser/extensions/extension_install_dialog.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // dismissed. Success/failure is passed back through the ExtensionInstallUI:: | 45 // dismissed. Success/failure is passed back through the ExtensionInstallUI:: |
46 // Delegate instance. | 46 // Delegate instance. |
47 class ExtensionInstallDialog { | 47 class ExtensionInstallDialog { |
48 public: | 48 public: |
49 ExtensionInstallDialog(GtkWindow* parent, | 49 ExtensionInstallDialog(GtkWindow* parent, |
50 ExtensionInstallUI::Delegate *delegate, | 50 ExtensionInstallUI::Delegate *delegate, |
51 const Extension* extension, | 51 const Extension* extension, |
52 SkBitmap* skia_icon, | 52 SkBitmap* skia_icon, |
53 const ExtensionInstallUI::Prompt& prompt); | 53 const ExtensionInstallUI::Prompt& prompt); |
54 private: | 54 private: |
55 virtual ~ExtensionInstallDialog(); | 55 ~ExtensionInstallDialog(); |
56 | 56 |
57 CHROMEGTK_CALLBACK_1(ExtensionInstallDialog, void, OnResponse, int); | 57 CHROMEGTK_CALLBACK_1(ExtensionInstallDialog, void, OnResponse, int); |
58 CHROMEGTK_CALLBACK_0(ExtensionInstallDialog, void, OnStoreLinkClick); | 58 CHROMEGTK_CALLBACK_0(ExtensionInstallDialog, void, OnStoreLinkClick); |
59 | 59 |
60 ExtensionInstallUI::Delegate* delegate_; | 60 ExtensionInstallUI::Delegate* delegate_; |
61 const Extension* extension_; | 61 const Extension* extension_; |
62 GtkWidget* dialog_; | 62 GtkWidget* dialog_; |
63 }; | 63 }; |
64 | 64 |
65 ExtensionInstallDialog::ExtensionInstallDialog( | 65 ExtensionInstallDialog::ExtensionInstallDialog( |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 delegate->InstallUIAbort(false); | 252 delegate->InstallUIAbort(false); |
253 return; | 253 return; |
254 } | 254 } |
255 | 255 |
256 new ExtensionInstallDialog(browser_window->window(), | 256 new ExtensionInstallDialog(browser_window->window(), |
257 delegate, | 257 delegate, |
258 extension, | 258 extension, |
259 icon, | 259 icon, |
260 prompt); | 260 prompt); |
261 } | 261 } |
OLD | NEW |