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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 112 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
113 virtual void HandleKeyboardEvent( | 113 virtual void HandleKeyboardEvent( |
114 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 114 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
115 virtual void RenderViewHostChanged() OVERRIDE; | 115 virtual void RenderViewHostChanged() OVERRIDE; |
116 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 116 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
117 | 117 |
118 // WebContentsModalDialogHost implementation. | 118 // WebContentsModalDialogHost implementation. |
119 virtual gfx::NativeView GetHostView() const OVERRIDE; | 119 virtual gfx::NativeView GetHostView() const OVERRIDE; |
120 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 120 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
121 virtual void AddObserver( | 121 virtual void AddObserver( |
122 WebContentsModalDialogHostObserver* observer) OVERRIDE; | 122 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
123 virtual void RemoveObserver( | 123 virtual void RemoveObserver( |
124 WebContentsModalDialogHostObserver* observer) OVERRIDE; | 124 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
125 | 125 |
126 private: | 126 private: |
127 virtual ~NativeAppWindowCocoa(); | 127 virtual ~NativeAppWindowCocoa(); |
128 | 128 |
129 ShellNSWindow* window() const; | 129 ShellNSWindow* window() const; |
130 | 130 |
131 content::WebContents* web_contents() const { | 131 content::WebContents* web_contents() const { |
132 return shell_window_->web_contents(); | 132 return shell_window_->web_contents(); |
133 } | 133 } |
134 const extensions::Extension* extension() const { | 134 const extensions::Extension* extension() const { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 NSPoint last_mouse_location_; | 175 NSPoint last_mouse_location_; |
176 | 176 |
177 // The Extension Command Registry used to determine which keyboard events to | 177 // The Extension Command Registry used to determine which keyboard events to |
178 // handle. | 178 // handle. |
179 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 179 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
180 | 180 |
181 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 181 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
182 }; | 182 }; |
183 | 183 |
184 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ | 184 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |