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 | 7 |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
(...skipping 111 matching lines...) Loading... |
122 const StartSyncCallback& start_sync_callback) override; | 122 const StartSyncCallback& start_sync_callback) override; |
123 #endif | 123 #endif |
124 bool IsDownloadShelfVisible() const override; | 124 bool IsDownloadShelfVisible() const override; |
125 DownloadShelf* GetDownloadShelf() override; | 125 DownloadShelf* GetDownloadShelf() override; |
126 void ConfirmBrowserCloseWithPendingDownloads( | 126 void ConfirmBrowserCloseWithPendingDownloads( |
127 int download_count, | 127 int download_count, |
128 Browser::DownloadClosePreventionType dialog_type, | 128 Browser::DownloadClosePreventionType dialog_type, |
129 bool app_modal, | 129 bool app_modal, |
130 const base::Callback<void(bool)>& callback) override; | 130 const base::Callback<void(bool)>& callback) override; |
131 void UserChangedTheme() override; | 131 void UserChangedTheme() override; |
132 void ShowWebsiteSettings( | 132 void ShowPageInfo(Profile* profile, |
133 Profile* profile, | 133 content::WebContents* web_contents, |
134 content::WebContents* web_contents, | 134 const GURL& virtual_url, |
135 const GURL& virtual_url, | 135 const security_state::SecurityInfo& security_info) override; |
136 const security_state::SecurityInfo& security_info) override; | |
137 void ShowAppMenu() override; | 136 void ShowAppMenu() override; |
138 content::KeyboardEventProcessingResult PreHandleKeyboardEvent( | 137 content::KeyboardEventProcessingResult PreHandleKeyboardEvent( |
139 const content::NativeWebKeyboardEvent& event) override; | 138 const content::NativeWebKeyboardEvent& event) override; |
140 void HandleKeyboardEvent( | 139 void HandleKeyboardEvent( |
141 const content::NativeWebKeyboardEvent& event) override; | 140 const content::NativeWebKeyboardEvent& event) override; |
142 void CutCopyPaste(int command_id) override; | 141 void CutCopyPaste(int command_id) override; |
143 WindowOpenDisposition GetDispositionForPopupBounds( | 142 WindowOpenDisposition GetDispositionForPopupBounds( |
144 const gfx::Rect& bounds) override; | 143 const gfx::Rect& bounds) override; |
145 FindBar* CreateFindBar() override; | 144 FindBar* CreateFindBar() override; |
146 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 145 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
(...skipping 47 matching lines...) Loading... |
194 ui::WindowShowState initial_show_state_; | 193 ui::WindowShowState initial_show_state_; |
195 NSInteger attention_request_id_; // identifier from requestUserAttention | 194 NSInteger attention_request_id_; // identifier from requestUserAttention |
196 | 195 |
197 // Preserves window alert state to show appropriate icon in the window title | 196 // Preserves window alert state to show appropriate icon in the window title |
198 // which can be audio playing, muting or none (determined by alert state of | 197 // which can be audio playing, muting or none (determined by alert state of |
199 // tabs. | 198 // tabs. |
200 TabAlertState alert_state_; | 199 TabAlertState alert_state_; |
201 }; | 200 }; |
202 | 201 |
203 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 202 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |