| 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 #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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const GURL& url, FullscreenExitBubbleType type) OVERRIDE; | 71 const GURL& url, FullscreenExitBubbleType type) OVERRIDE; |
| 72 virtual void ExitFullscreen() OVERRIDE; | 72 virtual void ExitFullscreen() OVERRIDE; |
| 73 virtual void UpdateFullscreenExitBubbleContent( | 73 virtual void UpdateFullscreenExitBubbleContent( |
| 74 const GURL& url, | 74 const GURL& url, |
| 75 FullscreenExitBubbleType bubble_type) OVERRIDE; | 75 FullscreenExitBubbleType bubble_type) OVERRIDE; |
| 76 virtual bool IsFullscreen() const OVERRIDE; | 76 virtual bool IsFullscreen() const OVERRIDE; |
| 77 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; | 77 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; |
| 78 virtual LocationBar* GetLocationBar() const OVERRIDE; | 78 virtual LocationBar* GetLocationBar() const OVERRIDE; |
| 79 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 79 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
| 80 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE; | 80 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE; |
| 81 virtual void UpdateToolbar(TabContentsWrapper* contents, | 81 virtual void UpdateToolbar(TabContents* contents, |
| 82 bool should_restore_state) OVERRIDE; | 82 bool should_restore_state) OVERRIDE; |
| 83 virtual void FocusToolbar() OVERRIDE; | 83 virtual void FocusToolbar() OVERRIDE; |
| 84 virtual void FocusAppMenu() OVERRIDE; | 84 virtual void FocusAppMenu() OVERRIDE; |
| 85 virtual void FocusBookmarksToolbar() OVERRIDE; | 85 virtual void FocusBookmarksToolbar() OVERRIDE; |
| 86 virtual void RotatePaneFocus(bool forwards) OVERRIDE; | 86 virtual void RotatePaneFocus(bool forwards) OVERRIDE; |
| 87 virtual bool IsBookmarkBarVisible() const OVERRIDE; | 87 virtual bool IsBookmarkBarVisible() const OVERRIDE; |
| 88 virtual bool IsBookmarkBarAnimating() const OVERRIDE; | 88 virtual bool IsBookmarkBarAnimating() const OVERRIDE; |
| 89 virtual bool IsTabStripEditable() const OVERRIDE; | 89 virtual bool IsTabStripEditable() const OVERRIDE; |
| 90 virtual bool IsToolbarVisible() const OVERRIDE; | 90 virtual bool IsToolbarVisible() const OVERRIDE; |
| 91 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 91 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 108 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; | 108 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; |
| 109 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; | 109 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; |
| 110 virtual void UserChangedTheme() OVERRIDE; | 110 virtual void UserChangedTheme() OVERRIDE; |
| 111 virtual int GetExtraRenderViewHeight() const OVERRIDE; | 111 virtual int GetExtraRenderViewHeight() const OVERRIDE; |
| 112 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; | 112 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; |
| 113 virtual void ShowPageInfo(Profile* profile, | 113 virtual void ShowPageInfo(Profile* profile, |
| 114 const GURL& url, | 114 const GURL& url, |
| 115 const content::SSLStatus& ssl, | 115 const content::SSLStatus& ssl, |
| 116 bool show_history) OVERRIDE; | 116 bool show_history) OVERRIDE; |
| 117 virtual void ShowWebsiteSettings(Profile* profile, | 117 virtual void ShowWebsiteSettings(Profile* profile, |
| 118 TabContentsWrapper* tab_contents_wrapper, | 118 TabContents* tab_contents, |
| 119 const GURL& url, | 119 const GURL& url, |
| 120 const content::SSLStatus& ssl, | 120 const content::SSLStatus& ssl, |
| 121 bool show_history) OVERRIDE; | 121 bool show_history) OVERRIDE; |
| 122 virtual void ShowAppMenu() OVERRIDE; | 122 virtual void ShowAppMenu() OVERRIDE; |
| 123 virtual bool PreHandleKeyboardEvent( | 123 virtual bool PreHandleKeyboardEvent( |
| 124 const content::NativeWebKeyboardEvent& event, | 124 const content::NativeWebKeyboardEvent& event, |
| 125 bool* is_keyboard_shortcut) OVERRIDE; | 125 bool* is_keyboard_shortcut) OVERRIDE; |
| 126 virtual void HandleKeyboardEvent( | 126 virtual void HandleKeyboardEvent( |
| 127 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 127 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 128 virtual void ShowCreateWebAppShortcutsDialog( | 128 virtual void ShowCreateWebAppShortcutsDialog( |
| 129 TabContentsWrapper* tab_contents) OVERRIDE; | 129 TabContents* tab_contents) OVERRIDE; |
| 130 virtual void ShowCreateChromeAppShortcutsDialog( | 130 virtual void ShowCreateChromeAppShortcutsDialog( |
| 131 Profile* profile, | 131 Profile* profile, |
| 132 const extensions::Extension* app) OVERRIDE; | 132 const extensions::Extension* app) OVERRIDE; |
| 133 virtual void Cut() OVERRIDE; | 133 virtual void Cut() OVERRIDE; |
| 134 virtual void Copy() OVERRIDE; | 134 virtual void Copy() OVERRIDE; |
| 135 virtual void Paste() OVERRIDE; | 135 virtual void Paste() OVERRIDE; |
| 136 virtual void OpenTabpose() OVERRIDE; | 136 virtual void OpenTabpose() OVERRIDE; |
| 137 virtual void EnterPresentationMode( | 137 virtual void EnterPresentationMode( |
| 138 const GURL& url, | 138 const GURL& url, |
| 139 FullscreenExitBubbleType bubble_type) OVERRIDE; | 139 FullscreenExitBubbleType bubble_type) OVERRIDE; |
| 140 virtual void ExitPresentationMode() OVERRIDE; | 140 virtual void ExitPresentationMode() OVERRIDE; |
| 141 virtual bool InPresentationMode() OVERRIDE; | 141 virtual bool InPresentationMode() OVERRIDE; |
| 142 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE; | 142 virtual void ShowInstant(TabContents* preview) OVERRIDE; |
| 143 virtual void HideInstant() OVERRIDE; | 143 virtual void HideInstant() OVERRIDE; |
| 144 virtual gfx::Rect GetInstantBounds() OVERRIDE; | 144 virtual gfx::Rect GetInstantBounds() OVERRIDE; |
| 145 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 145 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
| 146 const gfx::Rect& bounds) OVERRIDE; | 146 const gfx::Rect& bounds) OVERRIDE; |
| 147 virtual FindBar* CreateFindBar() OVERRIDE; | 147 virtual FindBar* CreateFindBar() OVERRIDE; |
| 148 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 148 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
| 149 const gfx::Rect& rect) OVERRIDE; | 149 const gfx::Rect& rect) OVERRIDE; |
| 150 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; | 150 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; |
| 151 | 151 |
| 152 // Overridden from NotificationObserver | 152 // Overridden from NotificationObserver |
| (...skipping 17 matching lines...) Expand all Loading... |
| 170 PrefChangeRegistrar pref_change_registrar_; | 170 PrefChangeRegistrar pref_change_registrar_; |
| 171 Browser* browser_; // weak, owned by controller | 171 Browser* browser_; // weak, owned by controller |
| 172 BrowserWindowController* controller_; // weak, owns us | 172 BrowserWindowController* controller_; // weak, owns us |
| 173 base::WeakPtrFactory<Browser> confirm_close_factory_; | 173 base::WeakPtrFactory<Browser> confirm_close_factory_; |
| 174 scoped_nsobject<NSString> pending_window_title_; | 174 scoped_nsobject<NSString> pending_window_title_; |
| 175 ui::WindowShowState initial_show_state_; | 175 ui::WindowShowState initial_show_state_; |
| 176 NSInteger attention_request_id_; // identifier from requestUserAttention | 176 NSInteger attention_request_id_; // identifier from requestUserAttention |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 179 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |