| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 ui::SlideAnimation slide_animation_; | 178 ui::SlideAnimation slide_animation_; |
| 179 | 179 |
| 180 DISALLOW_COPY_AND_ASSIGN(IssueAdviceView); | 180 DISALLOW_COPY_AND_ASSIGN(IssueAdviceView); |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 void ShowExtensionInstallDialogImpl( | 183 void ShowExtensionInstallDialogImpl( |
| 184 const ExtensionInstallPrompt::ShowParams& show_params, | 184 const ExtensionInstallPrompt::ShowParams& show_params, |
| 185 ExtensionInstallPrompt::Delegate* delegate, | 185 ExtensionInstallPrompt::Delegate* delegate, |
| 186 const ExtensionInstallPrompt::Prompt& prompt) { | 186 const ExtensionInstallPrompt::Prompt& prompt) { |
| 187 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 187 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
| 188 views::Widget::CreateWindowWithParent( | 188 views::DialogDelegate::CreateDialogWidget( |
| 189 new ExtensionInstallDialogView(show_params.navigator, delegate, prompt), | 189 new ExtensionInstallDialogView(show_params.navigator, delegate, prompt), |
| 190 show_params.parent_window)->Show(); | 190 NULL, show_params.parent_window)->Show(); |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace | 193 } // namespace |
| 194 | 194 |
| 195 ExtensionInstallDialogView::ExtensionInstallDialogView( | 195 ExtensionInstallDialogView::ExtensionInstallDialogView( |
| 196 content::PageNavigator* navigator, | 196 content::PageNavigator* navigator, |
| 197 ExtensionInstallPrompt::Delegate* delegate, | 197 ExtensionInstallPrompt::Delegate* delegate, |
| 198 const ExtensionInstallPrompt::Prompt& prompt) | 198 const ExtensionInstallPrompt::Prompt& prompt) |
| 199 : navigator_(navigator), | 199 : navigator_(navigator), |
| 200 delegate_(delegate), | 200 delegate_(delegate), |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 rotate.Translate(-arrow_view_->width() / 2.0, | 631 rotate.Translate(-arrow_view_->width() / 2.0, |
| 632 -arrow_view_->height() / 2.0); | 632 -arrow_view_->height() / 2.0); |
| 633 } | 633 } |
| 634 arrow_view_->SetTransform(rotate); | 634 arrow_view_->SetTransform(rotate); |
| 635 } | 635 } |
| 636 } | 636 } |
| 637 | 637 |
| 638 void IssueAdviceView::ChildPreferredSizeChanged(views::View* child) { | 638 void IssueAdviceView::ChildPreferredSizeChanged(views::View* child) { |
| 639 owner_->SizeToContents(); | 639 owner_->SizeToContents(); |
| 640 } | 640 } |
| OLD | NEW |