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_NATIVE_APP_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 virtual bool IsFullscreenOrPending() const OVERRIDE; | 106 virtual bool IsFullscreenOrPending() const OVERRIDE; |
107 virtual void UpdateWindowIcon() OVERRIDE; | 107 virtual void UpdateWindowIcon() OVERRIDE; |
108 virtual void UpdateWindowTitle() OVERRIDE; | 108 virtual void UpdateWindowTitle() OVERRIDE; |
109 virtual void UpdateDraggableRegions( | 109 virtual void UpdateDraggableRegions( |
110 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 110 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
111 virtual void HandleKeyboardEvent( | 111 virtual void HandleKeyboardEvent( |
112 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 112 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
113 virtual void RenderViewHostChanged() OVERRIDE; | 113 virtual void RenderViewHostChanged() OVERRIDE; |
114 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 114 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
115 | 115 |
| 116 // WebContentsModalDialogHost implementation. |
| 117 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
| 118 virtual void AddObserver( |
| 119 WebContentsModalDialogHostObserver* observer) OVERRIDE; |
| 120 virtual void RemoveObserver( |
| 121 WebContentsModalDialogHostObserver* observer) OVERRIDE; |
| 122 |
116 private: | 123 private: |
117 virtual ~NativeAppWindowCocoa(); | 124 virtual ~NativeAppWindowCocoa(); |
118 | 125 |
119 ShellNSWindow* window() const; | 126 ShellNSWindow* window() const; |
120 | 127 |
121 content::WebContents* web_contents() const { | 128 content::WebContents* web_contents() const { |
122 return shell_window_->web_contents(); | 129 return shell_window_->web_contents(); |
123 } | 130 } |
124 const extensions::Extension* extension() const { | 131 const extensions::Extension* extension() const { |
125 return shell_window_->extension(); | 132 return shell_window_->extension(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 NSPoint last_mouse_location_; | 172 NSPoint last_mouse_location_; |
166 | 173 |
167 // The Extension Command Registry used to determine which keyboard events to | 174 // The Extension Command Registry used to determine which keyboard events to |
168 // handle. | 175 // handle. |
169 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 176 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
170 | 177 |
171 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 178 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
172 }; | 179 }; |
173 | 180 |
174 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ | 181 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |