| 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 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 void WebsiteSettingsUIBridge::set_bubble_controller( | 1301 void WebsiteSettingsUIBridge::set_bubble_controller( |
| 1302 WebsiteSettingsBubbleController* controller) { | 1302 WebsiteSettingsBubbleController* controller) { |
| 1303 bubble_controller_ = controller; | 1303 bubble_controller_ = controller; |
| 1304 } | 1304 } |
| 1305 | 1305 |
| 1306 void WebsiteSettingsUIBridge::Show( | 1306 void WebsiteSettingsUIBridge::Show( |
| 1307 gfx::NativeWindow parent, | 1307 gfx::NativeWindow parent, |
| 1308 Profile* profile, | 1308 Profile* profile, |
| 1309 content::WebContents* web_contents, | 1309 content::WebContents* web_contents, |
| 1310 const GURL& url, | 1310 const GURL& url, |
| 1311 const SecurityStateModel::SecurityInfo& security_info) { | 1311 const security_state::SecurityStateModel::SecurityInfo& security_info) { |
| 1312 if (chrome::ToolkitViewsDialogsEnabled()) { | 1312 if (chrome::ToolkitViewsDialogsEnabled()) { |
| 1313 chrome::ShowWebsiteSettingsBubbleViewsAtPoint( | 1313 chrome::ShowWebsiteSettingsBubbleViewsAtPoint( |
| 1314 gfx::ScreenPointFromNSPoint(AnchorPointForWindow(parent)), profile, | 1314 gfx::ScreenPointFromNSPoint(AnchorPointForWindow(parent)), profile, |
| 1315 web_contents, url, security_info); | 1315 web_contents, url, security_info); |
| 1316 return; | 1316 return; |
| 1317 } | 1317 } |
| 1318 | 1318 |
| 1319 bool is_internal_page = InternalChromePage(url); | 1319 bool is_internal_page = InternalChromePage(url); |
| 1320 | 1320 |
| 1321 // Create the bridge. This will be owned by the bubble controller. | 1321 // Create the bridge. This will be owned by the bubble controller. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 } | 1360 } |
| 1361 | 1361 |
| 1362 void WebsiteSettingsUIBridge::SetPermissionInfo( | 1362 void WebsiteSettingsUIBridge::SetPermissionInfo( |
| 1363 const PermissionInfoList& permission_info_list) { | 1363 const PermissionInfoList& permission_info_list) { |
| 1364 [bubble_controller_ setPermissionInfo:permission_info_list]; | 1364 [bubble_controller_ setPermissionInfo:permission_info_list]; |
| 1365 } | 1365 } |
| 1366 | 1366 |
| 1367 void WebsiteSettingsUIBridge::SetSelectedTab(TabId tab_id) { | 1367 void WebsiteSettingsUIBridge::SetSelectedTab(TabId tab_id) { |
| 1368 [bubble_controller_ setSelectedTab:tab_id]; | 1368 [bubble_controller_ setSelectedTab:tab_id]; |
| 1369 } | 1369 } |
| OLD | NEW |