OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "chrome/browser/ui/cocoa/website_settings/website_settings_bubble_contro
ller.h" | 5 #import "chrome/browser/ui/cocoa/website_settings/website_settings_bubble_contro
ller.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #import <AppKit/AppKit.h> | 9 #import <AppKit/AppKit.h> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "content/public/browser/ssl_host_state_delegate.h" | 30 #include "content/public/browser/ssl_host_state_delegate.h" |
31 #include "content/public/browser/user_metrics.h" | 31 #include "content/public/browser/user_metrics.h" |
32 #include "content/public/browser/web_contents.h" | 32 #include "content/public/browser/web_contents.h" |
33 #include "grit/theme_resources.h" | 33 #include "grit/theme_resources.h" |
34 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 34 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
35 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" | 35 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
36 #import "ui/base/cocoa/flipped_view.h" | 36 #import "ui/base/cocoa/flipped_view.h" |
37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
38 #include "ui/base/resource/resource_bundle.h" | 38 #include "ui/base/resource/resource_bundle.h" |
39 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 39 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
40 #include "ui/resources/grit/ui_resources.h" | |
41 | 40 |
42 namespace { | 41 namespace { |
43 | 42 |
44 // The default width of the window, in view coordinates. It may be larger to | 43 // The default width of the window, in view coordinates. It may be larger to |
45 // fit the content. | 44 // fit the content. |
46 const CGFloat kDefaultWindowWidth = 310; | 45 const CGFloat kDefaultWindowWidth = 310; |
47 | 46 |
48 // Spacing in between sections. | 47 // Spacing in between sections. |
49 const CGFloat kVerticalSpacing = 10; | 48 const CGFloat kVerticalSpacing = 10; |
50 | 49 |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 [bubble_controller_ setPermissionInfo:permission_info_list]; | 1223 [bubble_controller_ setPermissionInfo:permission_info_list]; |
1225 } | 1224 } |
1226 | 1225 |
1227 void WebsiteSettingsUIBridge::SetFirstVisit(const base::string16& first_visit) { | 1226 void WebsiteSettingsUIBridge::SetFirstVisit(const base::string16& first_visit) { |
1228 [bubble_controller_ setFirstVisit:first_visit]; | 1227 [bubble_controller_ setFirstVisit:first_visit]; |
1229 } | 1228 } |
1230 | 1229 |
1231 void WebsiteSettingsUIBridge::SetSelectedTab(TabId tab_id) { | 1230 void WebsiteSettingsUIBridge::SetSelectedTab(TabId tab_id) { |
1232 [bubble_controller_ setSelectedTab:tab_id]; | 1231 [bubble_controller_ setSelectedTab:tab_id]; |
1233 } | 1232 } |
OLD | NEW |