OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // These are used to simulate Mac-style hide/show. Since windows can be hidden | 141 // These are used to simulate Mac-style hide/show. Since windows can be hidden |
142 // and shown using the app.window API, this sets is_hidden_with_app_ to | 142 // and shown using the app.window API, this sets is_hidden_with_app_ to |
143 // differentiate the reason a window was hidden. | 143 // differentiate the reason a window was hidden. |
144 virtual void ShowWithApp() OVERRIDE; | 144 virtual void ShowWithApp() OVERRIDE; |
145 virtual void HideWithApp() OVERRIDE; | 145 virtual void HideWithApp() OVERRIDE; |
146 virtual void UpdateShelfMenu() OVERRIDE; | 146 virtual void UpdateShelfMenu() OVERRIDE; |
147 virtual gfx::Size GetContentMinimumSize() const OVERRIDE; | 147 virtual gfx::Size GetContentMinimumSize() const OVERRIDE; |
148 virtual gfx::Size GetContentMaximumSize() const OVERRIDE; | 148 virtual gfx::Size GetContentMaximumSize() const OVERRIDE; |
149 virtual void SetContentSizeConstraints(const gfx::Size& min_size, | 149 virtual void SetContentSizeConstraints(const gfx::Size& min_size, |
150 const gfx::Size& max_size) OVERRIDE; | 150 const gfx::Size& max_size) OVERRIDE; |
| 151 virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE; |
151 | 152 |
152 // WebContentsObserver implementation. | 153 // WebContentsObserver implementation. |
153 virtual void RenderViewCreated(content::RenderViewHost* rvh) OVERRIDE; | 154 virtual void RenderViewCreated(content::RenderViewHost* rvh) OVERRIDE; |
154 | 155 |
155 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; | 156 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
156 | 157 |
157 // WebContentsModalDialogHost implementation. | 158 // WebContentsModalDialogHost implementation. |
158 virtual gfx::NativeView GetHostView() const OVERRIDE; | 159 virtual gfx::NativeView GetHostView() const OVERRIDE; |
159 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 160 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
160 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; | 161 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 std::vector<extensions::DraggableRegion> draggable_regions_; | 213 std::vector<extensions::DraggableRegion> draggable_regions_; |
213 | 214 |
214 // The Extension Command Registry used to determine which keyboard events to | 215 // The Extension Command Registry used to determine which keyboard events to |
215 // handle. | 216 // handle. |
216 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 217 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
217 | 218 |
218 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 219 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
219 }; | 220 }; |
220 | 221 |
221 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 222 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |