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 const content::NativeWebKeyboardEvent& event) override; | 151 const content::NativeWebKeyboardEvent& event) override; |
152 void CutCopyPaste(int command_id) override; | 152 void CutCopyPaste(int command_id) override; |
153 WindowOpenDisposition GetDispositionForPopupBounds( | 153 WindowOpenDisposition GetDispositionForPopupBounds( |
154 const gfx::Rect& bounds) override; | 154 const gfx::Rect& bounds) override; |
155 FindBar* CreateFindBar() override; | 155 FindBar* CreateFindBar() override; |
156 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 156 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
157 override; | 157 override; |
158 void ShowAvatarBubbleFromAvatarButton( | 158 void ShowAvatarBubbleFromAvatarButton( |
159 AvatarBubbleMode mode, | 159 AvatarBubbleMode mode, |
160 const signin::ManageAccountsParams& manage_accounts_params) override; | 160 const signin::ManageAccountsParams& manage_accounts_params) override; |
| 161 void ShowModalSigninWindow(AvatarBubbleMode mode) override; |
| 162 void CloseModalSigninWindow() override; |
161 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; | 163 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; |
162 void ExecuteExtensionCommand(const extensions::Extension* extension, | 164 void ExecuteExtensionCommand(const extensions::Extension* extension, |
163 const extensions::Command& command) override; | 165 const extensions::Command& command) override; |
164 ExclusiveAccessContext* GetExclusiveAccessContext() override; | 166 ExclusiveAccessContext* GetExclusiveAccessContext() override; |
165 | 167 |
166 // ExclusiveAccessContext interface | 168 // ExclusiveAccessContext interface |
167 Profile* GetProfile() override; | 169 Profile* GetProfile() override; |
168 content::WebContents* GetActiveWebContents() override; | 170 content::WebContents* GetActiveWebContents() override; |
169 void UnhideDownloadShelf() override; | 171 void UnhideDownloadShelf() override; |
170 void HideDownloadShelf() override; | 172 void HideDownloadShelf() override; |
(...skipping 19 matching lines...) Expand all Loading... |
190 NSWindow* window() const; // Accessor for the (current) |NSWindow|. | 192 NSWindow* window() const; // Accessor for the (current) |NSWindow|. |
191 | 193 |
192 Browser* browser_; // weak, owned by controller | 194 Browser* browser_; // weak, owned by controller |
193 BrowserWindowController* controller_; // weak, owns us | 195 BrowserWindowController* controller_; // weak, owns us |
194 base::scoped_nsobject<NSString> pending_window_title_; | 196 base::scoped_nsobject<NSString> pending_window_title_; |
195 ui::WindowShowState initial_show_state_; | 197 ui::WindowShowState initial_show_state_; |
196 NSInteger attention_request_id_; // identifier from requestUserAttention | 198 NSInteger attention_request_id_; // identifier from requestUserAttention |
197 }; | 199 }; |
198 | 200 |
199 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 201 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |