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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual void UpdateDraggableRegions( | 133 virtual void UpdateDraggableRegions( |
134 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 134 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
135 virtual SkRegion* GetDraggableRegion() OVERRIDE; | 135 virtual SkRegion* GetDraggableRegion() OVERRIDE; |
136 virtual void HandleKeyboardEvent( | 136 virtual void HandleKeyboardEvent( |
137 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 137 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
138 virtual bool IsFrameless() const OVERRIDE; | 138 virtual bool IsFrameless() const OVERRIDE; |
139 virtual bool HasFrameColor() const OVERRIDE; | 139 virtual bool HasFrameColor() const OVERRIDE; |
140 virtual SkColor ActiveFrameColor() const OVERRIDE; | 140 virtual SkColor ActiveFrameColor() const OVERRIDE; |
141 virtual SkColor InactiveFrameColor() const OVERRIDE; | 141 virtual SkColor InactiveFrameColor() const OVERRIDE; |
142 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 142 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
| 143 virtual bool CanHaveAlphaEnabled() const OVERRIDE; |
143 | 144 |
144 // These are used to simulate Mac-style hide/show. Since windows can be hidden | 145 // These are used to simulate Mac-style hide/show. Since windows can be hidden |
145 // and shown using the app.window API, this sets is_hidden_with_app_ to | 146 // and shown using the app.window API, this sets is_hidden_with_app_ to |
146 // differentiate the reason a window was hidden. | 147 // differentiate the reason a window was hidden. |
147 virtual void ShowWithApp() OVERRIDE; | 148 virtual void ShowWithApp() OVERRIDE; |
148 virtual void HideWithApp() OVERRIDE; | 149 virtual void HideWithApp() OVERRIDE; |
149 virtual void UpdateShelfMenu() OVERRIDE; | 150 virtual void UpdateShelfMenu() OVERRIDE; |
150 virtual gfx::Size GetContentMinimumSize() const OVERRIDE; | 151 virtual gfx::Size GetContentMinimumSize() const OVERRIDE; |
151 virtual gfx::Size GetContentMaximumSize() const OVERRIDE; | 152 virtual gfx::Size GetContentMaximumSize() const OVERRIDE; |
152 virtual void SetContentSizeConstraints(const gfx::Size& min_size, | 153 virtual void SetContentSizeConstraints(const gfx::Size& min_size, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 std::vector<extensions::DraggableRegion> draggable_regions_; | 217 std::vector<extensions::DraggableRegion> draggable_regions_; |
217 | 218 |
218 // The Extension Command Registry used to determine which keyboard events to | 219 // The Extension Command Registry used to determine which keyboard events to |
219 // handle. | 220 // handle. |
220 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 221 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
221 | 222 |
222 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 223 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
223 }; | 224 }; |
224 | 225 |
225 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 226 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |