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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 virtual bool IsFullscreenWithoutChrome() OVERRIDE; | 146 virtual bool IsFullscreenWithoutChrome() OVERRIDE; |
147 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 147 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
148 const gfx::Rect& bounds) OVERRIDE; | 148 const gfx::Rect& bounds) OVERRIDE; |
149 virtual FindBar* CreateFindBar() OVERRIDE; | 149 virtual FindBar* CreateFindBar() OVERRIDE; |
150 virtual web_modal::WebContentsModalDialogHost* | 150 virtual web_modal::WebContentsModalDialogHost* |
151 GetWebContentsModalDialogHost() OVERRIDE; | 151 GetWebContentsModalDialogHost() OVERRIDE; |
152 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 152 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
153 const gfx::Rect& rect) OVERRIDE; | 153 const gfx::Rect& rect) OVERRIDE; |
154 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 154 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
155 const signin::ManageAccountsParams& manage_accounts_params) OVERRIDE; | 155 const signin::ManageAccountsParams& manage_accounts_params) OVERRIDE; |
156 virtual void ShowPasswordGenerationBubble( | |
157 const gfx::Rect& rect, | |
158 const autofill::PasswordForm& form, | |
159 autofill::PasswordGenerator* password_generator) OVERRIDE; | |
160 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() OVERRIDE; | 156 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() OVERRIDE; |
161 virtual void ExecuteExtensionCommand( | 157 virtual void ExecuteExtensionCommand( |
162 const extensions::Extension* extension, | 158 const extensions::Extension* extension, |
163 const extensions::Command& command) OVERRIDE; | 159 const extensions::Command& command) OVERRIDE; |
164 | 160 |
165 // Overridden from ExtensionKeybindingRegistry::Delegate: | 161 // Overridden from ExtensionKeybindingRegistry::Delegate: |
166 virtual extensions::ActiveTabPermissionGranter* | 162 virtual extensions::ActiveTabPermissionGranter* |
167 GetActiveTabPermissionGranter() OVERRIDE; | 163 GetActiveTabPermissionGranter() OVERRIDE; |
168 | 164 |
169 // Overridden from SearchModelObserver: | 165 // Overridden from SearchModelObserver: |
(...skipping 13 matching lines...) Expand all Loading... |
183 NSWindow* window() const; // Accessor for the (current) |NSWindow|. | 179 NSWindow* window() const; // Accessor for the (current) |NSWindow|. |
184 | 180 |
185 Browser* browser_; // weak, owned by controller | 181 Browser* browser_; // weak, owned by controller |
186 BrowserWindowController* controller_; // weak, owns us | 182 BrowserWindowController* controller_; // weak, owns us |
187 base::scoped_nsobject<NSString> pending_window_title_; | 183 base::scoped_nsobject<NSString> pending_window_title_; |
188 ui::WindowShowState initial_show_state_; | 184 ui::WindowShowState initial_show_state_; |
189 NSInteger attention_request_id_; // identifier from requestUserAttention | 185 NSInteger attention_request_id_; // identifier from requestUserAttention |
190 }; | 186 }; |
191 | 187 |
192 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 188 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |