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

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

Issue 10703061: chrome/browser/ui: Put browser_dialogs.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_views.h" 5 #include "chrome/browser/ui/views/collected_cookies_views.h"
6 6
7 #include "chrome/browser/browsing_data_appcache_helper.h" 7 #include "chrome/browser/browsing_data_appcache_helper.h"
8 #include "chrome/browser/browsing_data_cookie_helper.h" 8 #include "chrome/browser/browsing_data_cookie_helper.h"
9 #include "chrome/browser/browsing_data_database_helper.h" 9 #include "chrome/browser/browsing_data_database_helper.h"
10 #include "chrome/browser/browsing_data_file_system_helper.h" 10 #include "chrome/browser/browsing_data_file_system_helper.h"
(...skipping 26 matching lines...) Expand all
37 #include "ui/views/controls/button/text_button.h" 37 #include "ui/views/controls/button/text_button.h"
38 #include "ui/views/controls/image_view.h" 38 #include "ui/views/controls/image_view.h"
39 #include "ui/views/controls/label.h" 39 #include "ui/views/controls/label.h"
40 #include "ui/views/controls/tabbed_pane/tabbed_pane.h" 40 #include "ui/views/controls/tabbed_pane/tabbed_pane.h"
41 #include "ui/views/controls/tree/tree_view.h" 41 #include "ui/views/controls/tree/tree_view.h"
42 #include "ui/views/layout/box_layout.h" 42 #include "ui/views/layout/box_layout.h"
43 #include "ui/views/layout/grid_layout.h" 43 #include "ui/views/layout/grid_layout.h"
44 #include "ui/views/layout/layout_constants.h" 44 #include "ui/views/layout/layout_constants.h"
45 #include "ui/views/widget/widget.h" 45 #include "ui/views/widget/widget.h"
46 46
47 namespace browser { 47 namespace chrome {
48 48
49 // Declared in browser_dialogs.h so others don't have to depend on our header. 49 // Declared in browser_dialogs.h so others don't have to depend on our header.
50 void ShowCollectedCookiesDialog(TabContents* tab_contents) { 50 void ShowCollectedCookiesDialog(TabContents* tab_contents) {
51 // Deletes itself on close. 51 // Deletes itself on close.
52 new CollectedCookiesViews(tab_contents); 52 new CollectedCookiesViews(tab_contents);
53 } 53 }
54 54
55 } // namespace browser 55 } // namespace chrome
56 56
57 namespace { 57 namespace {
58
58 // Spacing between the infobar frame and its contents. 59 // Spacing between the infobar frame and its contents.
59 const int kInfobarVerticalPadding = 3; 60 const int kInfobarVerticalPadding = 3;
60 const int kInfobarHorizontalPadding = 8; 61 const int kInfobarHorizontalPadding = 8;
61 62
62 // Width of the infobar frame. 63 // Width of the infobar frame.
63 const int kInfobarBorderSize = 1; 64 const int kInfobarBorderSize = 1;
64 65
65 // Dimensions of the tree views. 66 // Dimensions of the tree views.
66 const int kTreeViewWidth = 400; 67 const int kTreeViewWidth = 400;
67 const int kTreeViewHeight = 125; 68 const int kTreeViewHeight = 125;
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 /////////////////////////////////////////////////////////////////////////////// 524 ///////////////////////////////////////////////////////////////////////////////
524 // CollectedCookiesViews, content::NotificationObserver implementation: 525 // CollectedCookiesViews, content::NotificationObserver implementation:
525 526
526 void CollectedCookiesViews::Observe( 527 void CollectedCookiesViews::Observe(
527 int type, 528 int type,
528 const content::NotificationSource& source, 529 const content::NotificationSource& source,
529 const content::NotificationDetails& details) { 530 const content::NotificationDetails& details) {
530 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); 531 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN);
531 window_->CloseConstrainedWindow(); 532 window_->CloseConstrainedWindow();
532 } 533 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/about_ipc_dialog.cc ('k') | chrome/browser/ui/views/extensions/extension_installed_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698