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