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

Side by Side Diff: chrome/browser/ui/views/collected_cookies_win.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/collected_cookies_win.h" 5 #include "chrome/browser/ui/views/collected_cookies_win.h"
6 6
7 #include "chrome/browser/content_settings/cookie_settings.h" 7 #include "chrome/browser/content_settings/cookie_settings.h"
8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 8 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
9 #include "chrome/browser/cookies_tree_model.h" 9 #include "chrome/browser/cookies_tree_model.h"
10 #include "chrome/browser/infobars/infobar_tab_helper.h" 10 #include "chrome/browser/infobars/infobar_tab_helper.h"
11 #include "chrome/browser/prefs/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" 13 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h"
14 #include "chrome/browser/ui/constrained_window.h" 14 #include "chrome/browser/ui/constrained_window.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
16 #include "chrome/browser/ui/views/constrained_window_views.h" 16 #include "chrome/browser/ui/views/constrained_window_views.h"
17 #include "chrome/browser/ui/views/cookie_info_view.h" 17 #include "chrome/browser/ui/views/cookie_info_view.h"
18 #include "chrome/common/chrome_notification_types.h" 18 #include "chrome/common/chrome_notification_types.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "content/public/browser/notification_details.h" 20 #include "content/public/browser/notification_details.h"
21 #include "content/public/browser/notification_source.h" 21 #include "content/public/browser/notification_source.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "grit/locale_settings.h" 23 #include "grit/locale_settings.h"
24 #include "grit/theme_resources.h" 24 #include "grit/theme_resources.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/base/resource/resource_bundle.h" 26 #include "ui/base/resource/resource_bundle.h"
27 #include "ui/gfx/color_utils.h" 27 #include "ui/gfx/color_utils.h"
28 #include "ui/views/layout/box_layout.h"
29 #include "ui/views/layout/grid_layout.h"
30 #include "ui/views/layout/layout_constants.h"
28 #include "views/controls/button/text_button.h" 31 #include "views/controls/button/text_button.h"
29 #include "views/controls/image_view.h" 32 #include "views/controls/image_view.h"
30 #include "views/controls/label.h" 33 #include "views/controls/label.h"
31 #include "views/controls/tabbed_pane/tabbed_pane.h" 34 #include "views/controls/tabbed_pane/tabbed_pane.h"
32 #include "views/layout/box_layout.h"
33 #include "views/layout/grid_layout.h"
34 #include "views/layout/layout_constants.h"
35 #include "views/widget/widget.h" 35 #include "views/widget/widget.h"
36 36
37 namespace browser { 37 namespace browser {
38 38
39 // Declared in browser_dialogs.h so others don't have to depend on our header. 39 // Declared in browser_dialogs.h so others don't have to depend on our header.
40 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, 40 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window,
41 TabContentsWrapper* wrapper) { 41 TabContentsWrapper* wrapper) {
42 // Deletes itself on close. 42 // Deletes itself on close.
43 new CollectedCookiesWin(parent_window, wrapper); 43 new CollectedCookiesWin(parent_window, wrapper);
44 } 44 }
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 504
505 /////////////////////////////////////////////////////////////////////////////// 505 ///////////////////////////////////////////////////////////////////////////////
506 // content::NotificationObserver implementation. 506 // content::NotificationObserver implementation.
507 507
508 void CollectedCookiesWin::Observe(int type, 508 void CollectedCookiesWin::Observe(int type,
509 const content::NotificationSource& source, 509 const content::NotificationSource& source,
510 const content::NotificationDetails& details) { 510 const content::NotificationDetails& details) {
511 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); 511 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN);
512 window_->CloseConstrainedWindow(); 512 window_->CloseConstrainedWindow();
513 } 513 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bubble/bubble.cc ('k') | chrome/browser/ui/views/confirm_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698