| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) override; |
| 162 void ShowModalSigninWindow(AvatarBubbleMode mode) override; | 162 void ShowModalSigninWindow(AvatarBubbleMode mode) override; |
| 163 void CloseModalSigninWindow() override; | 163 void CloseModalSigninWindow() override; |
| 164 void ShowModalSyncConfirmationWindow(); |
| 164 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; | 165 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; |
| 165 void ExecuteExtensionCommand(const extensions::Extension* extension, | 166 void ExecuteExtensionCommand(const extensions::Extension* extension, |
| 166 const extensions::Command& command) override; | 167 const extensions::Command& command) override; |
| 167 ExclusiveAccessContext* GetExclusiveAccessContext() override; | 168 ExclusiveAccessContext* GetExclusiveAccessContext() override; |
| 168 | 169 |
| 169 // ExclusiveAccessContext interface | 170 // ExclusiveAccessContext interface |
| 170 Profile* GetProfile() override; | 171 Profile* GetProfile() override; |
| 171 content::WebContents* GetActiveWebContents() override; | 172 content::WebContents* GetActiveWebContents() override; |
| 172 void UnhideDownloadShelf() override; | 173 void UnhideDownloadShelf() override; |
| 173 void HideDownloadShelf() override; | 174 void HideDownloadShelf() override; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 ui::WindowShowState initial_show_state_; | 210 ui::WindowShowState initial_show_state_; |
| 210 NSInteger attention_request_id_; // identifier from requestUserAttention | 211 NSInteger attention_request_id_; // identifier from requestUserAttention |
| 211 | 212 |
| 212 // Preserves window media state to show appropriate icon in the window title | 213 // Preserves window media state to show appropriate icon in the window title |
| 213 // which can be audio playing, muting or none (determined by media state of | 214 // which can be audio playing, muting or none (determined by media state of |
| 214 // tabs. | 215 // tabs. |
| 215 TabMediaState media_state_; | 216 TabMediaState media_state_; |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 219 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |