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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 14672021: Remove the extension install dialog black border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698