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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // NativeAppWindow implementation. | 103 // NativeAppWindow implementation. |
104 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 104 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
105 virtual bool IsFullscreenOrPending() const OVERRIDE; | 105 virtual bool IsFullscreenOrPending() const OVERRIDE; |
106 virtual void UpdateWindowIcon() OVERRIDE; | 106 virtual void UpdateWindowIcon() OVERRIDE; |
107 virtual void UpdateWindowTitle() OVERRIDE; | 107 virtual void UpdateWindowTitle() OVERRIDE; |
108 virtual void UpdateDraggableRegions( | 108 virtual void UpdateDraggableRegions( |
109 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 109 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
110 virtual void HandleKeyboardEvent( | 110 virtual void HandleKeyboardEvent( |
111 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 111 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
112 virtual void RenderViewHostChanged() OVERRIDE {} | 112 virtual void RenderViewHostChanged() OVERRIDE {} |
| 113 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
113 | 114 |
114 private: | 115 private: |
115 virtual ~NativeAppWindowCocoa(); | 116 virtual ~NativeAppWindowCocoa(); |
116 | 117 |
117 ShellNSWindow* window() const; | 118 ShellNSWindow* window() const; |
118 | 119 |
119 content::WebContents* web_contents() const { | 120 content::WebContents* web_contents() const { |
120 return shell_window_->web_contents(); | 121 return shell_window_->web_contents(); |
121 } | 122 } |
122 const extensions::Extension* extension() const { | 123 const extensions::Extension* extension() const { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 NSPoint last_mouse_location_; | 163 NSPoint last_mouse_location_; |
163 | 164 |
164 // The Extension Command Registry used to determine which keyboard events to | 165 // The Extension Command Registry used to determine which keyboard events to |
165 // handle. | 166 // handle. |
166 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 167 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
167 | 168 |
168 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 169 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
169 }; | 170 }; |
170 | 171 |
171 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ | 172 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |