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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ShowWebsiteSettings( |
133 Profile* profile, | 133 Profile* profile, |
134 content::WebContents* web_contents, | 134 content::WebContents* web_contents, |
135 const GURL& virtual_url, | 135 const GURL& virtual_url, |
136 const security_state::SecurityInfo& security_info) override; | 136 const security_state::SecurityInfo& security_info) override; |
137 void ShowAppMenu() override; | 137 void ShowAppMenu() override; |
138 bool PreHandleKeyboardEvent(const content::NativeWebKeyboardEvent& event, | 138 content::KeyboardEventProcessingResult PreHandleKeyboardEvent( |
139 bool* is_keyboard_shortcut) override; | 139 const content::NativeWebKeyboardEvent& event) override; |
140 void HandleKeyboardEvent( | 140 void HandleKeyboardEvent( |
141 const content::NativeWebKeyboardEvent& event) override; | 141 const content::NativeWebKeyboardEvent& event) override; |
142 void CutCopyPaste(int command_id) override; | 142 void CutCopyPaste(int command_id) override; |
143 WindowOpenDisposition GetDispositionForPopupBounds( | 143 WindowOpenDisposition GetDispositionForPopupBounds( |
144 const gfx::Rect& bounds) override; | 144 const gfx::Rect& bounds) override; |
145 FindBar* CreateFindBar() override; | 145 FindBar* CreateFindBar() override; |
146 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 146 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
147 override; | 147 override; |
148 void ShowAvatarBubbleFromAvatarButton( | 148 void ShowAvatarBubbleFromAvatarButton( |
149 AvatarBubbleMode mode, | 149 AvatarBubbleMode mode, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 ui::WindowShowState initial_show_state_; | 194 ui::WindowShowState initial_show_state_; |
195 NSInteger attention_request_id_; // identifier from requestUserAttention | 195 NSInteger attention_request_id_; // identifier from requestUserAttention |
196 | 196 |
197 // Preserves window alert state to show appropriate icon in the window title | 197 // 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 | 198 // which can be audio playing, muting or none (determined by alert state of |
199 // tabs. | 199 // tabs. |
200 TabAlertState alert_state_; | 200 TabAlertState alert_state_; |
201 }; | 201 }; |
202 | 202 |
203 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 203 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |