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/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 gfx::Rect GetBounds() const override; | 71 gfx::Rect GetBounds() const override; |
72 bool IsMaximized() const override; | 72 bool IsMaximized() const override; |
73 bool IsMinimized() const override; | 73 bool IsMinimized() const override; |
74 void Maximize() override; | 74 void Maximize() override; |
75 void Minimize() override; | 75 void Minimize() override; |
76 void Restore() override; | 76 void Restore() override; |
77 void EnterFullscreen(const GURL& url, | 77 void EnterFullscreen(const GURL& url, |
78 ExclusiveAccessBubbleType type, | 78 ExclusiveAccessBubbleType type, |
79 bool with_toolbar) override; | 79 bool with_toolbar) override; |
80 void ExitFullscreen() override; | 80 void ExitFullscreen() override; |
81 void UpdateFullscreenExitBubbleContent( | 81 void UpdateExclusiveAccessExitBubbleContent( |
82 const GURL& url, | 82 const GURL& url, |
83 ExclusiveAccessBubbleType bubble_type) override; | 83 ExclusiveAccessBubbleType bubble_type) override; |
84 bool ShouldHideUIForFullscreen() const override; | 84 bool ShouldHideUIForFullscreen() const override; |
85 bool IsFullscreen() const override; | 85 bool IsFullscreen() const override; |
86 bool IsFullscreenBubbleVisible() const override; | 86 bool IsFullscreenBubbleVisible() const override; |
87 bool SupportsFullscreenWithToolbar() const override; | 87 bool SupportsFullscreenWithToolbar() const override; |
88 void UpdateFullscreenWithToolbar(bool with_toolbar) override; | 88 void UpdateFullscreenWithToolbar(bool with_toolbar) override; |
89 bool IsFullscreenWithToolbar() const override; | 89 bool IsFullscreenWithToolbar() const override; |
90 LocationBar* GetLocationBar() const override; | 90 LocationBar* GetLocationBar() const override; |
91 void SetFocusToLocationBar(bool select_all) override; | 91 void SetFocusToLocationBar(bool select_all) override; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 NSWindow* window() const; // Accessor for the (current) |NSWindow|. | 179 NSWindow* window() const; // Accessor for the (current) |NSWindow|. |
180 | 180 |
181 Browser* browser_; // weak, owned by controller | 181 Browser* browser_; // weak, owned by controller |
182 BrowserWindowController* controller_; // weak, owns us | 182 BrowserWindowController* controller_; // weak, owns us |
183 base::scoped_nsobject<NSString> pending_window_title_; | 183 base::scoped_nsobject<NSString> pending_window_title_; |
184 ui::WindowShowState initial_show_state_; | 184 ui::WindowShowState initial_show_state_; |
185 NSInteger attention_request_id_; // identifier from requestUserAttention | 185 NSInteger attention_request_id_; // identifier from requestUserAttention |
186 }; | 186 }; |
187 | 187 |
188 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 188 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |