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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void UpdateTitleBar(); | 47 virtual void UpdateTitleBar(); |
48 virtual void BookmarkBarStateChanged( | 48 virtual void BookmarkBarStateChanged( |
49 BookmarkBar::AnimateChangeType change_type); | 49 BookmarkBar::AnimateChangeType change_type); |
50 virtual void UpdateDevTools(); | 50 virtual void UpdateDevTools(); |
51 virtual void UpdateLoadingAnimations(bool should_animate); | 51 virtual void UpdateLoadingAnimations(bool should_animate); |
52 virtual void SetStarredState(bool is_starred); | 52 virtual void SetStarredState(bool is_starred); |
53 virtual gfx::Rect GetRestoredBounds() const; | 53 virtual gfx::Rect GetRestoredBounds() const; |
54 virtual gfx::Rect GetBounds() const; | 54 virtual gfx::Rect GetBounds() const; |
55 virtual bool IsMaximized() const; | 55 virtual bool IsMaximized() const; |
56 virtual bool IsMinimized() const; | 56 virtual bool IsMinimized() const; |
57 virtual void SetFullscreen(bool fullscreen); | 57 virtual void SetFullscreen(bool fullscreen, const GURL& url, bool show_buttons
); |
58 virtual bool IsFullscreen() const; | 58 virtual bool IsFullscreen() const; |
59 virtual bool IsFullscreenBubbleVisible() const; | 59 virtual bool IsFullscreenBubbleVisible() const; |
60 virtual LocationBar* GetLocationBar() const; | 60 virtual LocationBar* GetLocationBar() const; |
61 virtual void SetFocusToLocationBar(bool select_all); | 61 virtual void SetFocusToLocationBar(bool select_all); |
62 virtual void UpdateReloadStopState(bool is_loading, bool force); | 62 virtual void UpdateReloadStopState(bool is_loading, bool force); |
63 virtual void UpdateToolbar(TabContentsWrapper* contents, | 63 virtual void UpdateToolbar(TabContentsWrapper* contents, |
64 bool should_restore_state); | 64 bool should_restore_state); |
65 virtual void FocusToolbar(); | 65 virtual void FocusToolbar(); |
66 virtual void FocusAppMenu(); | 66 virtual void FocusAppMenu(); |
67 virtual void FocusBookmarksToolbar(); | 67 virtual void FocusBookmarksToolbar(); |
(...skipping 30 matching lines...) Expand all Loading... |
98 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 98 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
99 virtual void ShowCreateWebAppShortcutsDialog( | 99 virtual void ShowCreateWebAppShortcutsDialog( |
100 TabContentsWrapper* tab_contents); | 100 TabContentsWrapper* tab_contents); |
101 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile, | 101 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile, |
102 const Extension* app); | 102 const Extension* app); |
103 virtual void Cut(); | 103 virtual void Cut(); |
104 virtual void Copy(); | 104 virtual void Copy(); |
105 virtual void Paste(); | 105 virtual void Paste(); |
106 virtual void ToggleTabStripMode(); | 106 virtual void ToggleTabStripMode(); |
107 virtual void OpenTabpose(); | 107 virtual void OpenTabpose(); |
108 virtual void SetPresentationMode(bool presentation_mode); | 108 virtual void SetPresentationMode(bool presentation_mode, |
| 109 const GURL& url, |
| 110 bool show_buttons); |
109 virtual bool InPresentationMode(); | 111 virtual bool InPresentationMode(); |
110 virtual void PrepareForInstant(); | 112 virtual void PrepareForInstant(); |
111 virtual void ShowInstant(TabContentsWrapper* preview); | 113 virtual void ShowInstant(TabContentsWrapper* preview); |
112 virtual void HideInstant(bool instant_is_active); | 114 virtual void HideInstant(bool instant_is_active); |
113 virtual gfx::Rect GetInstantBounds(); | 115 virtual gfx::Rect GetInstantBounds(); |
114 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 116 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
115 const gfx::Rect& bounds); | 117 const gfx::Rect& bounds); |
116 virtual FindBar* CreateFindBar() OVERRIDE; | 118 virtual FindBar* CreateFindBar() OVERRIDE; |
117 | 119 |
118 // Overridden from NotificationObserver | 120 // Overridden from NotificationObserver |
(...skipping 16 matching lines...) Expand all Loading... |
135 | 137 |
136 NotificationRegistrar registrar_; | 138 NotificationRegistrar registrar_; |
137 Browser* browser_; // weak, owned by controller | 139 Browser* browser_; // weak, owned by controller |
138 BrowserWindowController* controller_; // weak, owns us | 140 BrowserWindowController* controller_; // weak, owns us |
139 base::WeakPtrFactory<Browser> confirm_close_factory_; | 141 base::WeakPtrFactory<Browser> confirm_close_factory_; |
140 scoped_nsobject<NSString> pending_window_title_; | 142 scoped_nsobject<NSString> pending_window_title_; |
141 ui::WindowShowState initial_show_state_; | 143 ui::WindowShowState initial_show_state_; |
142 }; | 144 }; |
143 | 145 |
144 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 146 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |