| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_APPS_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 | 106 |
| 107 // Returns true if |point| in local Cocoa coordinate system falls within | 107 // Returns true if |point| in local Cocoa coordinate system falls within |
| 108 // the draggable region. | 108 // the draggable region. |
| 109 bool IsWithinDraggableRegion(NSPoint point) const; | 109 bool IsWithinDraggableRegion(NSPoint point) const; |
| 110 | 110 |
| 111 NSRect restored_bounds() const { return restored_bounds_; } | 111 NSRect restored_bounds() const { return restored_bounds_; } |
| 112 bool use_system_drag() const { return use_system_drag_; } | 112 bool use_system_drag() const { return use_system_drag_; } |
| 113 | 113 |
| 114 protected: | 114 protected: |
| 115 // NativeAppWindow implementation. | 115 // NativeAppWindow implementation. |
| 116 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 116 virtual void SetFullscreen(int fullscreen_types) OVERRIDE; |
| 117 virtual bool IsFullscreenOrPending() const OVERRIDE; | 117 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 118 virtual bool IsDetached() const OVERRIDE; | 118 virtual bool IsDetached() const OVERRIDE; |
| 119 virtual void UpdateWindowIcon() OVERRIDE; | 119 virtual void UpdateWindowIcon() OVERRIDE; |
| 120 virtual void UpdateWindowTitle() OVERRIDE; | 120 virtual void UpdateWindowTitle() OVERRIDE; |
| 121 virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE; | 121 virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE; |
| 122 virtual void UpdateDraggableRegions( | 122 virtual void UpdateDraggableRegions( |
| 123 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 123 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
| 124 virtual SkRegion* GetDraggableRegion() OVERRIDE; | 124 virtual SkRegion* GetDraggableRegion() OVERRIDE; |
| 125 virtual void HandleKeyboardEvent( | 125 virtual void HandleKeyboardEvent( |
| 126 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 126 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 NSPoint last_mouse_location_; | 222 NSPoint last_mouse_location_; |
| 223 | 223 |
| 224 // The Extension Command Registry used to determine which keyboard events to | 224 // The Extension Command Registry used to determine which keyboard events to |
| 225 // handle. | 225 // handle. |
| 226 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 226 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 227 | 227 |
| 228 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 228 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 231 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
| OLD | NEW |