| 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 "chrome/browser/ui/views/content_setting_bubble_contents.h" | 5 #include "chrome/browser/ui/views/content_setting_bubble_contents.h" |
| 6 | 6 |
| 7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
| 8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "views/controls/button/native_button.h" | 24 #include "views/controls/button/native_button.h" |
| 25 #include "views/controls/button/radio_button.h" | 25 #include "views/controls/button/radio_button.h" |
| 26 #include "views/controls/image_view.h" | 26 #include "views/controls/image_view.h" |
| 27 #include "views/controls/label.h" | 27 #include "views/controls/label.h" |
| 28 #include "views/controls/separator.h" | 28 #include "views/controls/separator.h" |
| 29 #include "views/layout/grid_layout.h" | 29 #include "views/layout/grid_layout.h" |
| 30 #include "views/layout/layout_constants.h" | 30 #include "views/layout/layout_constants.h" |
| 31 #include "webkit/glue/plugins/plugin_list.h" | 31 #include "webkit/glue/plugins/plugin_list.h" |
| 32 | 32 |
| 33 #if defined(OS_LINUX) | 33 #if defined(OS_LINUX) |
| 34 #include "gfx/gtk_util.h" | 34 #include "ui/gfx/gtk_util.h" |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 // If we don't clamp the maximum width, then very long URLs and titles can make | 37 // If we don't clamp the maximum width, then very long URLs and titles can make |
| 38 // the bubble arbitrarily wide. | 38 // the bubble arbitrarily wide. |
| 39 const int kMaxContentsWidth = 500; | 39 const int kMaxContentsWidth = 500; |
| 40 | 40 |
| 41 // When we have multiline labels, we should set a minimum width lest we get very | 41 // When we have multiline labels, we should set a minimum width lest we get very |
| 42 // narrow bubbles with lots of line-wrapping. | 42 // narrow bubbles with lots of line-wrapping. |
| 43 const int kMinMultiLineContentsWidth = 250; | 43 const int kMinMultiLineContentsWidth = 250; |
| 44 | 44 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 layout->StartRow(0, double_column_set_id); | 333 layout->StartRow(0, double_column_set_id); |
| 334 manage_link_ = new views::Link(UTF8ToWide(bubble_content.manage_link)); | 334 manage_link_ = new views::Link(UTF8ToWide(bubble_content.manage_link)); |
| 335 manage_link_->SetController(this); | 335 manage_link_->SetController(this); |
| 336 layout->AddView(manage_link_); | 336 layout->AddView(manage_link_); |
| 337 | 337 |
| 338 close_button_ = | 338 close_button_ = |
| 339 new views::NativeButton(this, | 339 new views::NativeButton(this, |
| 340 UTF16ToWide(l10n_util::GetStringUTF16(IDS_DONE))); | 340 UTF16ToWide(l10n_util::GetStringUTF16(IDS_DONE))); |
| 341 layout->AddView(close_button_); | 341 layout->AddView(close_button_); |
| 342 } | 342 } |
| OLD | NEW |