OLD | NEW |
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 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_nsobject.h" | 9 #include "base/memory/scoped_nsobject.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; | 96 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; |
97 virtual void ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) OVERRIDE; | 97 virtual void ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) OVERRIDE; |
98 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; | 98 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; |
99 virtual void UserChangedTheme() OVERRIDE; | 99 virtual void UserChangedTheme() OVERRIDE; |
100 virtual int GetExtraRenderViewHeight() const OVERRIDE; | 100 virtual int GetExtraRenderViewHeight() const OVERRIDE; |
101 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; | 101 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; |
102 virtual void ShowPageInfo(Profile* profile, | 102 virtual void ShowPageInfo(Profile* profile, |
103 const GURL& url, | 103 const GURL& url, |
104 const content::SSLStatus& ssl, | 104 const content::SSLStatus& ssl, |
105 bool show_history) OVERRIDE; | 105 bool show_history) OVERRIDE; |
| 106 virtual void ShowWebsiteSettings(Profile* profile, |
| 107 TabContentsWrapper* tab_contents_wrapper, |
| 108 const GURL& url, |
| 109 const content::SSLStatus& ssl, |
| 110 bool show_history) OVERRIDE; |
106 virtual void ShowAppMenu() OVERRIDE; | 111 virtual void ShowAppMenu() OVERRIDE; |
107 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 112 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
108 bool* is_keyboard_shortcut) OVERRIDE; | 113 bool* is_keyboard_shortcut) OVERRIDE; |
109 virtual void HandleKeyboardEvent( | 114 virtual void HandleKeyboardEvent( |
110 const NativeWebKeyboardEvent& event) OVERRIDE; | 115 const NativeWebKeyboardEvent& event) OVERRIDE; |
111 virtual void ShowCreateWebAppShortcutsDialog( | 116 virtual void ShowCreateWebAppShortcutsDialog( |
112 TabContentsWrapper* tab_contents) OVERRIDE; | 117 TabContentsWrapper* tab_contents) OVERRIDE; |
113 virtual void ShowCreateChromeAppShortcutsDialog( | 118 virtual void ShowCreateChromeAppShortcutsDialog( |
114 Profile* profile, | 119 Profile* profile, |
115 const Extension* app) OVERRIDE; | 120 const Extension* app) OVERRIDE; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 PrefChangeRegistrar pref_change_registrar_; | 158 PrefChangeRegistrar pref_change_registrar_; |
154 Browser* browser_; // weak, owned by controller | 159 Browser* browser_; // weak, owned by controller |
155 BrowserWindowController* controller_; // weak, owns us | 160 BrowserWindowController* controller_; // weak, owns us |
156 base::WeakPtrFactory<Browser> confirm_close_factory_; | 161 base::WeakPtrFactory<Browser> confirm_close_factory_; |
157 scoped_nsobject<NSString> pending_window_title_; | 162 scoped_nsobject<NSString> pending_window_title_; |
158 ui::WindowShowState initial_show_state_; | 163 ui::WindowShowState initial_show_state_; |
159 NSInteger attention_request_id_; // identifier from requestUserAttention | 164 NSInteger attention_request_id_; // identifier from requestUserAttention |
160 }; | 165 }; |
161 | 166 |
162 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 167 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |