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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 virtual void UpdateDraggableRegions( | 111 virtual void UpdateDraggableRegions( |
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::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 119 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
120 virtual void AddObserver( | 120 virtual void AddObserver( |
121 WebContentsModalDialogHostObserver* observer) OVERRIDE; | 121 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
122 virtual void RemoveObserver( | 122 virtual void RemoveObserver( |
123 WebContentsModalDialogHostObserver* observer) OVERRIDE; | 123 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
124 | 124 |
125 private: | 125 private: |
126 virtual ~NativeAppWindowCocoa(); | 126 virtual ~NativeAppWindowCocoa(); |
127 | 127 |
128 ShellNSWindow* window() const; | 128 ShellNSWindow* window() const; |
129 | 129 |
130 content::WebContents* web_contents() const { | 130 content::WebContents* web_contents() const { |
131 return shell_window_->web_contents(); | 131 return shell_window_->web_contents(); |
132 } | 132 } |
133 const extensions::Extension* extension() const { | 133 const extensions::Extension* extension() const { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 NSPoint last_mouse_location_; | 174 NSPoint last_mouse_location_; |
175 | 175 |
176 // The Extension Command Registry used to determine which keyboard events to | 176 // The Extension Command Registry used to determine which keyboard events to |
177 // handle. | 177 // handle. |
178 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 178 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
179 | 179 |
180 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 180 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
181 }; | 181 }; |
182 | 182 |
183 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ | 183 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |