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

Side by Side Diff: chrome/browser/ui/views/update_recommended_message_box.cc

Issue 15497003: Remove the update recommended dialog black border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove debugging code. 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 "chrome/browser/ui/views/update_recommended_message_box.h" 5 #include "chrome/browser/ui/views/update_recommended_message_box.h"
6 6
7 #include "chrome/browser/lifetime/application_lifetime.h" 7 #include "chrome/browser/lifetime/application_lifetime.h"
8 #include "grit/chromium_strings.h" 8 #include "grit/chromium_strings.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
11 #include "ui/views/controls/message_box_view.h" 11 #include "ui/views/controls/message_box_view.h"
12 #include "ui/views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 #if defined(OS_CHROMEOS) 14 #if defined(OS_CHROMEOS)
15 #include "chromeos/dbus/dbus_thread_manager.h" 15 #include "chromeos/dbus/dbus_thread_manager.h"
16 #include "chromeos/dbus/power_manager_client.h" 16 #include "chromeos/dbus/power_manager_client.h"
17 #endif 17 #endif
18 18
19 //////////////////////////////////////////////////////////////////////////////// 19 ////////////////////////////////////////////////////////////////////////////////
20 // UpdateRecommendedMessageBox, public: 20 // UpdateRecommendedMessageBox, public:
21 21
22 // static 22 // static
23 void UpdateRecommendedMessageBox::Show(gfx::NativeWindow parent_window) { 23 void UpdateRecommendedMessageBox::Show(gfx::NativeWindow parent_window) {
24 // When the window closes, it will delete itself. 24 // When the window closes, it will delete itself.
25 views::Widget::CreateWindowWithParent(new UpdateRecommendedMessageBox(), 25 views::DialogDelegate::CreateDialogWidget(new UpdateRecommendedMessageBox(),
26 parent_window)->Show(); 26 NULL, parent_window)->Show();
27 } 27 }
28 28
29 //////////////////////////////////////////////////////////////////////////////// 29 ////////////////////////////////////////////////////////////////////////////////
30 // UpdateRecommendedMessageBox, private: 30 // UpdateRecommendedMessageBox, private:
31 31
32 UpdateRecommendedMessageBox::UpdateRecommendedMessageBox() { 32 UpdateRecommendedMessageBox::UpdateRecommendedMessageBox() {
33 const int kDialogWidth = 400; 33 const int kDialogWidth = 400;
34 #if defined(OS_CHROMEOS) 34 #if defined(OS_CHROMEOS)
35 const int kProductNameID = IDS_SHORT_PRODUCT_OS_NAME; 35 const int kProductNameID = IDS_SHORT_PRODUCT_OS_NAME;
36 #else 36 #else
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return message_box_view_; 86 return message_box_view_;
87 } 87 }
88 88
89 views::Widget* UpdateRecommendedMessageBox::GetWidget() { 89 views::Widget* UpdateRecommendedMessageBox::GetWidget() {
90 return message_box_view_->GetWidget(); 90 return message_box_view_->GetWidget();
91 } 91 }
92 92
93 const views::Widget* UpdateRecommendedMessageBox::GetWidget() const { 93 const views::Widget* UpdateRecommendedMessageBox::GetWidget() const {
94 return message_box_view_->GetWidget(); 94 return message_box_view_->GetWidget();
95 } 95 }
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