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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 void HandleKeyboardEvent( | 151 void HandleKeyboardEvent( |
152 const content::NativeWebKeyboardEvent& event) override; | 152 const content::NativeWebKeyboardEvent& event) override; |
153 void CutCopyPaste(int command_id) override; | 153 void CutCopyPaste(int command_id) override; |
154 WindowOpenDisposition GetDispositionForPopupBounds( | 154 WindowOpenDisposition GetDispositionForPopupBounds( |
155 const gfx::Rect& bounds) override; | 155 const gfx::Rect& bounds) override; |
156 FindBar* CreateFindBar() override; | 156 FindBar* CreateFindBar() override; |
157 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 157 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
158 override; | 158 override; |
159 void ShowAvatarBubbleFromAvatarButton( | 159 void ShowAvatarBubbleFromAvatarButton( |
160 AvatarBubbleMode mode, | 160 AvatarBubbleMode mode, |
161 const signin::ManageAccountsParams& manage_accounts_params) override; | 161 const signin::ManageAccountsParams& manage_accounts_params, |
| 162 signin_metrics::AccessPoint access_point) override; |
162 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; | 163 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; |
163 void ExecuteExtensionCommand(const extensions::Extension* extension, | 164 void ExecuteExtensionCommand(const extensions::Extension* extension, |
164 const extensions::Command& command) override; | 165 const extensions::Command& command) override; |
165 ExclusiveAccessContext* GetExclusiveAccessContext() override; | 166 ExclusiveAccessContext* GetExclusiveAccessContext() override; |
166 | 167 |
167 // ExclusiveAccessContext interface | 168 // ExclusiveAccessContext interface |
168 Profile* GetProfile() override; | 169 Profile* GetProfile() override; |
169 content::WebContents* GetActiveWebContents() override; | 170 content::WebContents* GetActiveWebContents() override; |
170 void UnhideDownloadShelf() override; | 171 void UnhideDownloadShelf() override; |
171 void HideDownloadShelf() override; | 172 void HideDownloadShelf() override; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 ui::WindowShowState initial_show_state_; | 208 ui::WindowShowState initial_show_state_; |
208 NSInteger attention_request_id_; // identifier from requestUserAttention | 209 NSInteger attention_request_id_; // identifier from requestUserAttention |
209 | 210 |
210 // Preserves window media state to show appropriate icon in the window title | 211 // Preserves window media state to show appropriate icon in the window title |
211 // which can be audio playing, muting or none (determined by media state of | 212 // which can be audio playing, muting or none (determined by media state of |
212 // tabs. | 213 // tabs. |
213 TabMediaState media_state_; | 214 TabMediaState media_state_; |
214 }; | 215 }; |
215 | 216 |
216 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 217 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |