| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_nsobject.h" | 9 #include "base/memory/scoped_nsobject.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual void ToggleBookmarkBar(); | 82 virtual void ToggleBookmarkBar(); |
| 83 virtual void ShowAboutChromeDialog(); | 83 virtual void ShowAboutChromeDialog(); |
| 84 virtual void ShowUpdateChromeDialog(); | 84 virtual void ShowUpdateChromeDialog(); |
| 85 virtual void ShowTaskManager(); | 85 virtual void ShowTaskManager(); |
| 86 virtual void ShowBackgroundPages(); | 86 virtual void ShowBackgroundPages(); |
| 87 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); | 87 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
| 88 virtual bool IsDownloadShelfVisible() const; | 88 virtual bool IsDownloadShelfVisible() const; |
| 89 virtual DownloadShelf* GetDownloadShelf(); | 89 virtual DownloadShelf* GetDownloadShelf(); |
| 90 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); | 90 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); |
| 91 virtual void ShowCollectedCookiesDialog(TabContentsWrapper* wrapper); | 91 virtual void ShowCollectedCookiesDialog(TabContentsWrapper* wrapper); |
| 92 virtual void ShowThemeInstallBubble(); | |
| 93 virtual void ConfirmBrowserCloseWithPendingDownloads(); | 92 virtual void ConfirmBrowserCloseWithPendingDownloads(); |
| 94 virtual void UserChangedTheme(); | 93 virtual void UserChangedTheme(); |
| 95 virtual int GetExtraRenderViewHeight() const; | 94 virtual int GetExtraRenderViewHeight() const; |
| 96 virtual void TabContentsFocused(TabContents* tab_contents); | 95 virtual void TabContentsFocused(TabContents* tab_contents); |
| 97 virtual void ShowPageInfo(Profile* profile, | 96 virtual void ShowPageInfo(Profile* profile, |
| 98 const GURL& url, | 97 const GURL& url, |
| 99 const NavigationEntry::SSLStatus& ssl, | 98 const NavigationEntry::SSLStatus& ssl, |
| 100 bool show_history); | 99 bool show_history); |
| 101 virtual void ShowAppMenu(); | 100 virtual void ShowAppMenu(); |
| 102 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 101 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 content::NotificationRegistrar registrar_; | 145 content::NotificationRegistrar registrar_; |
| 147 PrefChangeRegistrar pref_change_registrar_; | 146 PrefChangeRegistrar pref_change_registrar_; |
| 148 Browser* browser_; // weak, owned by controller | 147 Browser* browser_; // weak, owned by controller |
| 149 BrowserWindowController* controller_; // weak, owns us | 148 BrowserWindowController* controller_; // weak, owns us |
| 150 base::WeakPtrFactory<Browser> confirm_close_factory_; | 149 base::WeakPtrFactory<Browser> confirm_close_factory_; |
| 151 scoped_nsobject<NSString> pending_window_title_; | 150 scoped_nsobject<NSString> pending_window_title_; |
| 152 ui::WindowShowState initial_show_state_; | 151 ui::WindowShowState initial_show_state_; |
| 153 }; | 152 }; |
| 154 | 153 |
| 155 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 154 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |