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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 1539043002: Pull SecurityStateModel out into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
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/cocoa/browser_window_cocoa.h" 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #import "base/mac/sdk_forward_declarations.h" 10 #import "base/mac/sdk_forward_declarations.h"
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 } 728 }
729 729
730 void BrowserWindowCocoa::UserChangedTheme() { 730 void BrowserWindowCocoa::UserChangedTheme() {
731 [controller_ userChangedTheme]; 731 [controller_ userChangedTheme];
732 } 732 }
733 733
734 void BrowserWindowCocoa::ShowWebsiteSettings( 734 void BrowserWindowCocoa::ShowWebsiteSettings(
735 Profile* profile, 735 Profile* profile,
736 content::WebContents* web_contents, 736 content::WebContents* web_contents,
737 const GURL& url, 737 const GURL& url,
738 const SecurityStateModel::SecurityInfo& security_info) { 738 const security_state::SecurityStateModel::SecurityInfo& security_info) {
739 WebsiteSettingsUIBridge::Show(window(), profile, web_contents, url, 739 WebsiteSettingsUIBridge::Show(window(), profile, web_contents, url,
740 security_info); 740 security_info);
741 } 741 }
742 742
743 void BrowserWindowCocoa::ShowAppMenu() { 743 void BrowserWindowCocoa::ShowAppMenu() {
744 // No-op. Mac doesn't support showing the menus via alt keys. 744 // No-op. Mac doesn't support showing the menus via alt keys.
745 } 745 }
746 746
747 bool BrowserWindowCocoa::PreHandleKeyboardEvent( 747 bool BrowserWindowCocoa::PreHandleKeyboardEvent(
748 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { 748 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 void BrowserWindowCocoa::UnhideDownloadShelf() { 894 void BrowserWindowCocoa::UnhideDownloadShelf() {
895 GetDownloadShelf()->Unhide(); 895 GetDownloadShelf()->Unhide();
896 } 896 }
897 897
898 void BrowserWindowCocoa::HideDownloadShelf() { 898 void BrowserWindowCocoa::HideDownloadShelf() {
899 GetDownloadShelf()->Hide(); 899 GetDownloadShelf()->Hide();
900 StatusBubble* statusBubble = GetStatusBubble(); 900 StatusBubble* statusBubble = GetStatusBubble();
901 if (statusBubble) 901 if (statusBubble)
902 statusBubble->Hide(); 902 statusBubble->Hide();
903 } 903 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698