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/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 136 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
137 const gfx::Rect& bounds) OVERRIDE; | 137 const gfx::Rect& bounds) OVERRIDE; |
138 virtual FindBar* CreateFindBar() OVERRIDE; | 138 virtual FindBar* CreateFindBar() OVERRIDE; |
139 virtual web_modal::WebContentsModalDialogHost* | 139 virtual web_modal::WebContentsModalDialogHost* |
140 GetWebContentsModalDialogHost() OVERRIDE; | 140 GetWebContentsModalDialogHost() OVERRIDE; |
141 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 141 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
142 const gfx::Rect& rect) OVERRIDE; | 142 const gfx::Rect& rect) OVERRIDE; |
143 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; | 143 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; |
144 virtual void ShowPasswordGenerationBubble( | 144 virtual void ShowPasswordGenerationBubble( |
145 const gfx::Rect& rect, | 145 const gfx::Rect& rect, |
146 const content::PasswordForm& form, | 146 const autofill::PasswordForm& form, |
147 autofill::PasswordGenerator* password_generator) OVERRIDE; | 147 autofill::PasswordGenerator* password_generator) OVERRIDE; |
148 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() OVERRIDE; | 148 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() OVERRIDE; |
149 | 149 |
150 // Overridden from ExtensionKeybindingRegistry::Delegate: | 150 // Overridden from ExtensionKeybindingRegistry::Delegate: |
151 virtual extensions::ActiveTabPermissionGranter* | 151 virtual extensions::ActiveTabPermissionGranter* |
152 GetActiveTabPermissionGranter() OVERRIDE; | 152 GetActiveTabPermissionGranter() OVERRIDE; |
153 | 153 |
154 // Overridden from SearchModelObserver: | 154 // Overridden from SearchModelObserver: |
155 virtual void ModelChanged(const SearchModel::State& old_state, | 155 virtual void ModelChanged(const SearchModel::State& old_state, |
156 const SearchModel::State& new_state) OVERRIDE; | 156 const SearchModel::State& new_state) OVERRIDE; |
(...skipping 11 matching lines...) Expand all Loading... |
168 NSWindow* window() const; // Accessor for the (current) |NSWindow|. | 168 NSWindow* window() const; // Accessor for the (current) |NSWindow|. |
169 | 169 |
170 Browser* browser_; // weak, owned by controller | 170 Browser* browser_; // weak, owned by controller |
171 BrowserWindowController* controller_; // weak, owns us | 171 BrowserWindowController* controller_; // weak, owns us |
172 base::scoped_nsobject<NSString> pending_window_title_; | 172 base::scoped_nsobject<NSString> pending_window_title_; |
173 ui::WindowShowState initial_show_state_; | 173 ui::WindowShowState initial_show_state_; |
174 NSInteger attention_request_id_; // identifier from requestUserAttention | 174 NSInteger attention_request_id_; // identifier from requestUserAttention |
175 }; | 175 }; |
176 | 176 |
177 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 177 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |