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_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/cocoa_protocols.h" | 10 #import "base/mac/cocoa_protocols.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 protected: | 67 protected: |
68 // ShellWindow implementation. | 68 // ShellWindow implementation. |
69 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 69 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
70 virtual bool IsFullscreenOrPending() const OVERRIDE; | 70 virtual bool IsFullscreenOrPending() const OVERRIDE; |
71 | 71 |
72 private: | 72 private: |
73 virtual ~ShellWindowCocoa(); | 73 virtual ~ShellWindowCocoa(); |
74 | 74 |
75 NSWindow* window() const; | 75 NSWindow* window() const; |
76 | 76 |
| 77 void InstallView(); |
| 78 void UninstallView(); |
| 79 |
| 80 bool has_frame_; |
| 81 |
77 bool is_fullscreen_; | 82 bool is_fullscreen_; |
78 NSRect restored_bounds_; | 83 NSRect restored_bounds_; |
79 | 84 |
80 scoped_nsobject<ShellWindowController> window_controller_; | 85 scoped_nsobject<ShellWindowController> window_controller_; |
81 NSInteger attention_request_id_; // identifier from requestUserAttention | 86 NSInteger attention_request_id_; // identifier from requestUserAttention |
82 | 87 |
83 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); | 88 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); |
84 }; | 89 }; |
85 | 90 |
86 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 91 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
OLD | NEW |