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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 48 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
49 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE; | 49 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE; |
50 virtual StatusBubble* GetStatusBubble() OVERRIDE; | 50 virtual StatusBubble* GetStatusBubble() OVERRIDE; |
51 virtual void UpdateTitleBar() OVERRIDE; | 51 virtual void UpdateTitleBar() OVERRIDE; |
52 virtual void BookmarkBarStateChanged( | 52 virtual void BookmarkBarStateChanged( |
53 BookmarkBar::AnimateChangeType change_type) OVERRIDE; | 53 BookmarkBar::AnimateChangeType change_type) OVERRIDE; |
54 virtual void UpdateDevTools() OVERRIDE; | 54 virtual void UpdateDevTools() OVERRIDE; |
55 virtual void SetDevToolsDockSide(DevToolsDockSide side) OVERRIDE; | 55 virtual void SetDevToolsDockSide(DevToolsDockSide side) OVERRIDE; |
56 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE; | 56 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE; |
57 virtual void SetStarredState(bool is_starred) OVERRIDE; | 57 virtual void SetStarredState(bool is_starred) OVERRIDE; |
58 virtual void ZoomChangedForActiveTab(bool can_show_bubble) OVERRIDE; | 58 virtual void SetZoomIconState(ZoomController::ZoomIconState state) OVERRIDE; |
| 59 virtual void SetZoomIconTooltipPercent(int zoom_percent) OVERRIDE; |
| 60 virtual void ShowZoomBubble(int zoom_percent) OVERRIDE; |
59 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 61 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
60 virtual gfx::Rect GetBounds() const OVERRIDE; | 62 virtual gfx::Rect GetBounds() const OVERRIDE; |
61 virtual bool IsMaximized() const OVERRIDE; | 63 virtual bool IsMaximized() const OVERRIDE; |
62 virtual bool IsMinimized() const OVERRIDE; | 64 virtual bool IsMinimized() const OVERRIDE; |
63 virtual void Maximize() OVERRIDE; | 65 virtual void Maximize() OVERRIDE; |
64 virtual void Minimize() OVERRIDE; | 66 virtual void Minimize() OVERRIDE; |
65 virtual void Restore() OVERRIDE; | 67 virtual void Restore() OVERRIDE; |
66 virtual void EnterFullscreen( | 68 virtual void EnterFullscreen( |
67 const GURL& url, FullscreenExitBubbleType type) OVERRIDE; | 69 const GURL& url, FullscreenExitBubbleType type) OVERRIDE; |
68 virtual void ExitFullscreen() OVERRIDE; | 70 virtual void ExitFullscreen() OVERRIDE; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 PrefChangeRegistrar pref_change_registrar_; | 165 PrefChangeRegistrar pref_change_registrar_; |
164 Browser* browser_; // weak, owned by controller | 166 Browser* browser_; // weak, owned by controller |
165 BrowserWindowController* controller_; // weak, owns us | 167 BrowserWindowController* controller_; // weak, owns us |
166 base::WeakPtrFactory<Browser> confirm_close_factory_; | 168 base::WeakPtrFactory<Browser> confirm_close_factory_; |
167 scoped_nsobject<NSString> pending_window_title_; | 169 scoped_nsobject<NSString> pending_window_title_; |
168 ui::WindowShowState initial_show_state_; | 170 ui::WindowShowState initial_show_state_; |
169 NSInteger attention_request_id_; // identifier from requestUserAttention | 171 NSInteger attention_request_id_; // identifier from requestUserAttention |
170 }; | 172 }; |
171 | 173 |
172 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 174 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |