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

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

Issue 8566052: views: Delete bubble, events, focus, layout directories and its stubbed files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 9 years, 1 month 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
OLDNEW
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 "chrome/browser/ui/views/confirm_bubble_view.h" 5 #include "chrome/browser/ui/views/confirm_bubble_view.h"
6 6
7 #include "chrome/browser/ui/confirm_bubble_model.h" 7 #include "chrome/browser/ui/confirm_bubble_model.h"
8 #include "grit/theme_resources.h" 8 #include "grit/theme_resources.h"
9 #include "ui/base/resource/resource_bundle.h" 9 #include "ui/base/resource/resource_bundle.h"
10 #include "ui/gfx/image/image.h" 10 #include "ui/gfx/image/image.h"
11 #include "ui/views/layout/grid_layout.h"
12 #include "ui/views/layout/layout_constants.h"
11 #include "views/controls/button/image_button.h" 13 #include "views/controls/button/image_button.h"
12 #include "views/controls/button/text_button.h" 14 #include "views/controls/button/text_button.h"
13 #include "views/controls/image_view.h" 15 #include "views/controls/image_view.h"
14 #include "views/controls/label.h" 16 #include "views/controls/label.h"
15 #include "views/controls/link.h" 17 #include "views/controls/link.h"
16 #include "views/layout/grid_layout.h"
17 #include "views/layout/layout_constants.h"
18 18
19 namespace { 19 namespace {
20 20
21 // Maximum width for the message field. We will wrap the message text when its 21 // Maximum width for the message field. We will wrap the message text when its
22 // width is wider than this. 22 // width is wider than this.
23 const int kMaxMessageWidth = 400; 23 const int kMaxMessageWidth = 400;
24 24
25 } // namespace 25 } // namespace
26 26
27 ConfirmBubbleView::ConfirmBubbleView(ConfirmBubbleModel* model) 27 ConfirmBubbleView::ConfirmBubbleView(ConfirmBubbleModel* model)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 layout->AddView(ok_button); 153 layout->AddView(ok_button);
154 } 154 }
155 if (has_cancel_button) { 155 if (has_cancel_button) {
156 views::TextButton* cancel_button = new views::NativeTextButton( 156 views::TextButton* cancel_button = new views::NativeTextButton(
157 this, model_->GetButtonLabel(ConfirmBubbleModel::BUTTON_CANCEL)); 157 this, model_->GetButtonLabel(ConfirmBubbleModel::BUTTON_CANCEL));
158 cancel_button->set_tag(ConfirmBubbleModel::BUTTON_CANCEL); 158 cancel_button->set_tag(ConfirmBubbleModel::BUTTON_CANCEL);
159 layout->AddView(cancel_button); 159 layout->AddView(cancel_button);
160 } 160 }
161 } 161 }
162 } 162 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_win.cc ('k') | chrome/browser/ui/views/constrained_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698