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

Side by Side Diff: chrome/browser/ui/views/content_setting_bubble_contents.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/content_setting_bubble_contents.h" 5 #include "chrome/browser/ui/views/content_setting_bubble_contents.h"
6 6
7 #if defined(TOOLKIT_USES_GTK) 7 #if defined(TOOLKIT_USES_GTK)
8 #include <gdk/gdk.h> 8 #include <gdk/gdk.h>
9 #endif 9 #endif
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "chrome/browser/content_settings/host_content_settings_map.h" 17 #include "chrome/browser/content_settings/host_content_settings_map.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" 19 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h"
20 #include "chrome/browser/ui/views/browser_dialogs.h" 20 #include "chrome/browser/ui/views/browser_dialogs.h"
21 #include "chrome/browser/ui/views/bubble/bubble.h" 21 #include "chrome/browser/ui/views/bubble/bubble.h"
22 #include "content/browser/plugin_service.h" 22 #include "content/browser/plugin_service.h"
23 #include "content/browser/tab_contents/tab_contents.h" 23 #include "content/browser/tab_contents/tab_contents.h"
24 #include "content/public/browser/notification_source.h" 24 #include "content/public/browser/notification_source.h"
25 #include "content/public/browser/notification_types.h" 25 #include "content/public/browser/notification_types.h"
26 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 #include "ui/views/layout/grid_layout.h"
29 #include "ui/views/layout/layout_constants.h"
28 #include "views/controls/button/radio_button.h" 30 #include "views/controls/button/radio_button.h"
29 #include "views/controls/button/text_button.h" 31 #include "views/controls/button/text_button.h"
30 #include "views/controls/image_view.h" 32 #include "views/controls/image_view.h"
31 #include "views/controls/label.h" 33 #include "views/controls/label.h"
32 #include "views/controls/link.h" 34 #include "views/controls/link.h"
33 #include "views/controls/separator.h" 35 #include "views/controls/separator.h"
34 #include "views/layout/grid_layout.h"
35 #include "views/layout/layout_constants.h"
36 36
37 #if defined(TOOLKIT_USES_GTK) 37 #if defined(TOOLKIT_USES_GTK)
38 #include "ui/gfx/gtk_util.h" 38 #include "ui/gfx/gtk_util.h"
39 #endif 39 #endif
40 40
41 #if defined(USE_AURA) 41 #if defined(USE_AURA)
42 #include "ui/aura/cursor.h" 42 #include "ui/aura/cursor.h"
43 #endif 43 #endif
44 44
45 // If we don't clamp the maximum width, then very long URLs and titles can make 45 // If we don't clamp the maximum width, then very long URLs and titles can make
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 layout->StartRow(0, double_column_set_id); 334 layout->StartRow(0, double_column_set_id);
335 manage_link_ = new views::Link(UTF8ToUTF16(bubble_content.manage_link)); 335 manage_link_ = new views::Link(UTF8ToUTF16(bubble_content.manage_link));
336 manage_link_->set_listener(this); 336 manage_link_->set_listener(this);
337 layout->AddView(manage_link_); 337 layout->AddView(manage_link_);
338 338
339 close_button_ = new views::NativeTextButton( 339 close_button_ = new views::NativeTextButton(
340 this, l10n_util::GetStringUTF16(IDS_DONE)); 340 this, 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/constrained_window_views_browsertest.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