| 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/memory/scoped_nsobject.h" | 8 #include "base/memory/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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 Profile* profile) OVERRIDE; | 94 Profile* profile) OVERRIDE; |
| 95 virtual void ToggleBookmarkBar() OVERRIDE; | 95 virtual void ToggleBookmarkBar() OVERRIDE; |
| 96 virtual void ShowUpdateChromeDialog() OVERRIDE; | 96 virtual void ShowUpdateChromeDialog() OVERRIDE; |
| 97 virtual void ShowBookmarkBubble(const GURL& url, | 97 virtual void ShowBookmarkBubble(const GURL& url, |
| 98 bool already_bookmarked) OVERRIDE; | 98 bool already_bookmarked) OVERRIDE; |
| 99 virtual void ShowChromeToMobileBubble() OVERRIDE; | 99 virtual void ShowChromeToMobileBubble() OVERRIDE; |
| 100 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 100 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 101 virtual void ShowOneClickSigninBubble( | 101 virtual void ShowOneClickSigninBubble( |
| 102 OneClickSigninBubbleType type, | 102 OneClickSigninBubbleType type, |
| 103 const string16& email, | 103 const string16& email, |
| 104 const string16& error_message, |
| 104 const StartSyncCallback& start_sync_callback) OVERRIDE; | 105 const StartSyncCallback& start_sync_callback) OVERRIDE; |
| 105 #endif | 106 #endif |
| 106 virtual bool IsDownloadShelfVisible() const OVERRIDE; | 107 virtual bool IsDownloadShelfVisible() const OVERRIDE; |
| 107 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; | 108 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; |
| 108 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; | 109 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; |
| 109 virtual void UserChangedTheme() OVERRIDE; | 110 virtual void UserChangedTheme() OVERRIDE; |
| 110 virtual int GetExtraRenderViewHeight() const OVERRIDE; | 111 virtual int GetExtraRenderViewHeight() const OVERRIDE; |
| 111 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; | 112 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; |
| 112 virtual void ShowWebsiteSettings(Profile* profile, | 113 virtual void ShowWebsiteSettings(Profile* profile, |
| 113 content::WebContents* web_contents, | 114 content::WebContents* web_contents, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 166 |
| 166 Browser* browser_; // weak, owned by controller | 167 Browser* browser_; // weak, owned by controller |
| 167 BrowserWindowController* controller_; // weak, owns us | 168 BrowserWindowController* controller_; // weak, owns us |
| 168 base::WeakPtrFactory<Browser> confirm_close_factory_; | 169 base::WeakPtrFactory<Browser> confirm_close_factory_; |
| 169 scoped_nsobject<NSString> pending_window_title_; | 170 scoped_nsobject<NSString> pending_window_title_; |
| 170 ui::WindowShowState initial_show_state_; | 171 ui::WindowShowState initial_show_state_; |
| 171 NSInteger attention_request_id_; // identifier from requestUserAttention | 172 NSInteger attention_request_id_; // identifier from requestUserAttention |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 175 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |