| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 virtual bool IsFullscreenOrPending() const OVERRIDE; | 110 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 111 virtual bool IsDetached() const OVERRIDE; | 111 virtual bool IsDetached() const OVERRIDE; |
| 112 virtual void UpdateWindowIcon() OVERRIDE; | 112 virtual void UpdateWindowIcon() OVERRIDE; |
| 113 virtual void UpdateWindowTitle() OVERRIDE; | 113 virtual void UpdateWindowTitle() OVERRIDE; |
| 114 virtual void UpdateDraggableRegions( | 114 virtual void UpdateDraggableRegions( |
| 115 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 115 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
| 116 virtual void HandleKeyboardEvent( | 116 virtual void HandleKeyboardEvent( |
| 117 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 117 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 118 virtual void RenderViewHostChanged() OVERRIDE; | 118 virtual void RenderViewHostChanged() OVERRIDE; |
| 119 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 119 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
| 120 virtual gfx::Rect GetWindowWorkArea() const OVERRIDE; |
| 120 | 121 |
| 121 // WebContentsModalDialogHost implementation. | 122 // WebContentsModalDialogHost implementation. |
| 122 virtual gfx::NativeView GetHostView() const OVERRIDE; | 123 virtual gfx::NativeView GetHostView() const OVERRIDE; |
| 123 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 124 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
| 124 virtual void AddObserver( | 125 virtual void AddObserver( |
| 125 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 126 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
| 126 virtual void RemoveObserver( | 127 virtual void RemoveObserver( |
| 127 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 128 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
| 128 | 129 |
| 129 private: | 130 private: |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 NSPoint last_mouse_location_; | 180 NSPoint last_mouse_location_; |
| 180 | 181 |
| 181 // The Extension Command Registry used to determine which keyboard events to | 182 // The Extension Command Registry used to determine which keyboard events to |
| 182 // handle. | 183 // handle. |
| 183 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 184 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 184 | 185 |
| 185 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 186 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
| 186 }; | 187 }; |
| 187 | 188 |
| 188 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ | 189 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ |
| OLD | NEW |