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; | |
152 | 151 |
153 // WebContentsObserver implementation. | 152 // WebContentsObserver implementation. |
154 virtual void RenderViewCreated(content::RenderViewHost* rvh) OVERRIDE; | 153 virtual void RenderViewCreated(content::RenderViewHost* rvh) OVERRIDE; |
155 | 154 |
156 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; | 155 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
157 | 156 |
158 // WebContentsModalDialogHost implementation. | 157 // WebContentsModalDialogHost implementation. |
159 virtual gfx::NativeView GetHostView() const OVERRIDE; | 158 virtual gfx::NativeView GetHostView() const OVERRIDE; |
160 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 159 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
161 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; | 160 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 std::vector<extensions::DraggableRegion> draggable_regions_; | 212 std::vector<extensions::DraggableRegion> draggable_regions_; |
214 | 213 |
215 // The Extension Command Registry used to determine which keyboard events to | 214 // The Extension Command Registry used to determine which keyboard events to |
216 // handle. | 215 // handle. |
217 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 216 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
218 | 217 |
219 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 218 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
220 }; | 219 }; |
221 | 220 |
222 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 221 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |