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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm

Issue 1539043002: Pull SecurityStateModel out into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit test debugging Created 5 years 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
OLDNEW
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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 void WebsiteSettingsUIBridge::set_bubble_controller( 1298 void WebsiteSettingsUIBridge::set_bubble_controller(
1299 WebsiteSettingsBubbleController* controller) { 1299 WebsiteSettingsBubbleController* controller) {
1300 bubble_controller_ = controller; 1300 bubble_controller_ = controller;
1301 } 1301 }
1302 1302
1303 void WebsiteSettingsUIBridge::Show( 1303 void WebsiteSettingsUIBridge::Show(
1304 gfx::NativeWindow parent, 1304 gfx::NativeWindow parent,
1305 Profile* profile, 1305 Profile* profile,
1306 content::WebContents* web_contents, 1306 content::WebContents* web_contents,
1307 const GURL& url, 1307 const GURL& url,
1308 const SecurityStateModel::SecurityInfo& security_info) { 1308 const security_state::SecurityStateModel::SecurityInfo& security_info) {
1309 if (chrome::ToolkitViewsDialogsEnabled()) { 1309 if (chrome::ToolkitViewsDialogsEnabled()) {
1310 chrome::ShowWebsiteSettingsBubbleViewsAtPoint( 1310 chrome::ShowWebsiteSettingsBubbleViewsAtPoint(
1311 gfx::ScreenPointFromNSPoint(AnchorPointForWindow(parent)), profile, 1311 gfx::ScreenPointFromNSPoint(AnchorPointForWindow(parent)), profile,
1312 web_contents, url, security_info); 1312 web_contents, url, security_info);
1313 return; 1313 return;
1314 } 1314 }
1315 1315
1316 bool is_internal_page = InternalChromePage(url); 1316 bool is_internal_page = InternalChromePage(url);
1317 1317
1318 // Create the bridge. This will be owned by the bubble controller. 1318 // Create the bridge. This will be owned by the bubble controller.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 } 1357 }
1358 1358
1359 void WebsiteSettingsUIBridge::SetPermissionInfo( 1359 void WebsiteSettingsUIBridge::SetPermissionInfo(
1360 const PermissionInfoList& permission_info_list) { 1360 const PermissionInfoList& permission_info_list) {
1361 [bubble_controller_ setPermissionInfo:permission_info_list]; 1361 [bubble_controller_ setPermissionInfo:permission_info_list];
1362 } 1362 }
1363 1363
1364 void WebsiteSettingsUIBridge::SetSelectedTab(TabId tab_id) { 1364 void WebsiteSettingsUIBridge::SetSelectedTab(TabId tab_id) {
1365 [bubble_controller_ setSelectedTab:tab_id]; 1365 [bubble_controller_ setSelectedTab:tab_id];
1366 } 1366 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698