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

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

Issue 6382009: views: Move grid_layout files into layout directory. Final Part. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
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/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
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/blocked_content_container.h" 12 #include "chrome/browser/blocked_content_container.h"
13 #include "chrome/browser/content_settings/host_content_settings_map.h" 13 #include "chrome/browser/content_settings/host_content_settings_map.h"
14 #include "chrome/browser/content_setting_bubble_model.h" 14 #include "chrome/browser/content_setting_bubble_model.h"
15 #include "chrome/browser/plugin_updater.h" 15 #include "chrome/browser/plugin_updater.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/tab_contents/tab_contents.h" 17 #include "chrome/browser/tab_contents/tab_contents.h"
18 #include "chrome/browser/ui/views/browser_dialogs.h" 18 #include "chrome/browser/ui/views/browser_dialogs.h"
19 #include "chrome/browser/ui/views/info_bubble.h" 19 #include "chrome/browser/ui/views/info_bubble.h"
20 #include "chrome/common/notification_source.h" 20 #include "chrome/common/notification_source.h"
21 #include "chrome/common/notification_type.h" 21 #include "chrome/common/notification_type.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
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/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 "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;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_win.cc ('k') | chrome/browser/ui/views/cookie_info_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698