| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 virtual void RenderViewHostChanged( | 130 virtual void RenderViewHostChanged( |
| 131 content::RenderViewHost* old_host, | 131 content::RenderViewHost* old_host, |
| 132 content::RenderViewHost* new_host) OVERRIDE; | 132 content::RenderViewHost* new_host) OVERRIDE; |
| 133 | 133 |
| 134 // These are used to simulate Mac-style hide/show. Since windows can be hidden | 134 // These are used to simulate Mac-style hide/show. Since windows can be hidden |
| 135 // and shown using the app.window API, this sets is_hidden_with_app_ to | 135 // and shown using the app.window API, this sets is_hidden_with_app_ to |
| 136 // differentiate the reason a window was hidden. | 136 // differentiate the reason a window was hidden. |
| 137 virtual void ShowWithApp() OVERRIDE; | 137 virtual void ShowWithApp() OVERRIDE; |
| 138 virtual void HideWithApp() OVERRIDE; | 138 virtual void HideWithApp() OVERRIDE; |
| 139 | 139 |
| 140 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
| 141 |
| 140 // WebContentsModalDialogHost implementation. | 142 // WebContentsModalDialogHost implementation. |
| 141 virtual gfx::NativeView GetHostView() const OVERRIDE; | 143 virtual gfx::NativeView GetHostView() const OVERRIDE; |
| 142 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 144 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
| 143 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; | 145 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; |
| 144 virtual void AddObserver( | 146 virtual void AddObserver( |
| 145 web_modal::ModalDialogHostObserver* observer) OVERRIDE; | 147 web_modal::ModalDialogHostObserver* observer) OVERRIDE; |
| 146 virtual void RemoveObserver( | 148 virtual void RemoveObserver( |
| 147 web_modal::ModalDialogHostObserver* observer) OVERRIDE; | 149 web_modal::ModalDialogHostObserver* observer) OVERRIDE; |
| 148 | 150 |
| 149 private: | 151 private: |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 NSPoint last_mouse_location_; | 221 NSPoint last_mouse_location_; |
| 220 | 222 |
| 221 // The Extension Command Registry used to determine which keyboard events to | 223 // The Extension Command Registry used to determine which keyboard events to |
| 222 // handle. | 224 // handle. |
| 223 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 225 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 224 | 226 |
| 225 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 227 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
| 226 }; | 228 }; |
| 227 | 229 |
| 228 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 230 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
| OLD | NEW |