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

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: 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 (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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 } 727 }
728 728
729 void BrowserWindowCocoa::UserChangedTheme() { 729 void BrowserWindowCocoa::UserChangedTheme() {
730 [controller_ userChangedTheme]; 730 [controller_ userChangedTheme];
731 } 731 }
732 732
733 void BrowserWindowCocoa::ShowWebsiteSettings( 733 void BrowserWindowCocoa::ShowWebsiteSettings(
734 Profile* profile, 734 Profile* profile,
735 content::WebContents* web_contents, 735 content::WebContents* web_contents,
736 const GURL& url, 736 const GURL& url,
737 const SecurityStateModel::SecurityInfo& security_info) { 737 const security_state::SecurityStateModel::SecurityInfo& security_info) {
738 WebsiteSettingsUIBridge::Show(window(), profile, web_contents, url, 738 WebsiteSettingsUIBridge::Show(window(), profile, web_contents, url,
739 security_info); 739 security_info);
740 } 740 }
741 741
742 void BrowserWindowCocoa::ShowAppMenu() { 742 void BrowserWindowCocoa::ShowAppMenu() {
743 // No-op. Mac doesn't support showing the menus via alt keys. 743 // No-op. Mac doesn't support showing the menus via alt keys.
744 } 744 }
745 745
746 bool BrowserWindowCocoa::PreHandleKeyboardEvent( 746 bool BrowserWindowCocoa::PreHandleKeyboardEvent(
747 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { 747 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 void BrowserWindowCocoa::UnhideDownloadShelf() { 893 void BrowserWindowCocoa::UnhideDownloadShelf() {
894 GetDownloadShelf()->Unhide(); 894 GetDownloadShelf()->Unhide();
895 } 895 }
896 896
897 void BrowserWindowCocoa::HideDownloadShelf() { 897 void BrowserWindowCocoa::HideDownloadShelf() {
898 GetDownloadShelf()->Hide(); 898 GetDownloadShelf()->Hide();
899 StatusBubble* statusBubble = GetStatusBubble(); 899 StatusBubble* statusBubble = GetStatusBubble();
900 if (statusBubble) 900 if (statusBubble)
901 statusBubble->Hide(); 901 statusBubble->Hide();
902 } 902 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698