| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual void UpdateWindowIcon() OVERRIDE; | 118 virtual void UpdateWindowIcon() OVERRIDE; |
| 119 virtual void UpdateWindowTitle() OVERRIDE; | 119 virtual void UpdateWindowTitle() OVERRIDE; |
| 120 virtual void UpdateBadgeIcon() OVERRIDE; | 120 virtual void UpdateBadgeIcon() OVERRIDE; |
| 121 virtual void UpdateShape(scoped_ptr<SkRegion> region) OVERRIDE; | 121 virtual void UpdateShape(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; |
| 127 virtual bool IsFrameless() const OVERRIDE; | 127 virtual bool IsFrameless() const OVERRIDE; |
| 128 virtual bool HasFrameColor() const OVERRIDE; |
| 129 virtual SkColor FrameColor() const OVERRIDE; |
| 128 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 130 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
| 129 | 131 |
| 130 // These are used to simulate Mac-style hide/show. Since windows can be hidden | 132 // These are used to simulate Mac-style hide/show. Since windows can be hidden |
| 131 // and shown using the app.window API, this sets is_hidden_with_app_ to | 133 // and shown using the app.window API, this sets is_hidden_with_app_ to |
| 132 // differentiate the reason a window was hidden. | 134 // differentiate the reason a window was hidden. |
| 133 virtual void ShowWithApp() OVERRIDE; | 135 virtual void ShowWithApp() OVERRIDE; |
| 134 virtual void HideWithApp() OVERRIDE; | 136 virtual void HideWithApp() OVERRIDE; |
| 135 // Calls setContent[Min|Max]Size with the current size constraints. | 137 // Calls setContent[Min|Max]Size with the current size constraints. |
| 136 virtual void UpdateWindowMinMaxSize() OVERRIDE; | 138 virtual void UpdateWindowMinMaxSize() OVERRIDE; |
| 137 | 139 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 NSPoint last_mouse_location_; | 222 NSPoint last_mouse_location_; |
| 221 | 223 |
| 222 // The Extension Command Registry used to determine which keyboard events to | 224 // The Extension Command Registry used to determine which keyboard events to |
| 223 // handle. | 225 // handle. |
| 224 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 226 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 225 | 227 |
| 226 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 228 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
| 227 }; | 229 }; |
| 228 | 230 |
| 229 #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 |