| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 bool ExtensionInstallDialogView::Accept() { | 281 bool ExtensionInstallDialogView::Accept() { |
| 282 delegate_->InstallUIProceed(); | 282 delegate_->InstallUIProceed(); |
| 283 return true; | 283 return true; |
| 284 } | 284 } |
| 285 | 285 |
| 286 bool ExtensionInstallDialogView::IsModal() const { | 286 bool ExtensionInstallDialogView::IsModal() const { |
| 287 return true; | 287 return true; |
| 288 } | 288 } |
| 289 | 289 |
| 290 string16 ExtensionInstallDialogView::GetWindowTitle() const { | 290 string16 ExtensionInstallDialogView::GetWindowTitle() const { |
| 291 return prompt_.GetDialogTitle(extension_); | 291 return prompt_.GetDialogTitle(); |
| 292 } | 292 } |
| 293 | 293 |
| 294 views::View* ExtensionInstallDialogView::GetContentsView() { | 294 views::View* ExtensionInstallDialogView::GetContentsView() { |
| 295 return this; | 295 return this; |
| 296 } | 296 } |
| 297 | 297 |
| 298 void ExtensionInstallDialogView::LinkClicked(views::Link* source, | 298 void ExtensionInstallDialogView::LinkClicked(views::Link* source, |
| 299 int event_flags) { | 299 int event_flags) { |
| 300 GURL store_url( | 300 GURL store_url( |
| 301 extension_urls::GetWebstoreItemDetailURLPrefix() + extension_->id()); | 301 extension_urls::GetWebstoreItemDetailURLPrefix() + extension_->id()); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 328 } | 328 } |
| 329 | 329 |
| 330 ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView( | 330 ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView( |
| 331 delegate, extension, icon, prompt); | 331 delegate, extension, icon, prompt); |
| 332 | 332 |
| 333 views::Widget* window = browser::CreateViewsWindow( | 333 views::Widget* window = browser::CreateViewsWindow( |
| 334 browser_window->GetNativeHandle(), dialog, STYLE_GENERIC); | 334 browser_window->GetNativeHandle(), dialog, STYLE_GENERIC); |
| 335 | 335 |
| 336 window->Show(); | 336 window->Show(); |
| 337 } | 337 } |
| OLD | NEW |