| 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 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 const std::vector<extensions::DraggableRegion>& regions) override; | 134 const std::vector<extensions::DraggableRegion>& regions) override; |
| 135 SkRegion* GetDraggableRegion() override; | 135 SkRegion* GetDraggableRegion() override; |
| 136 void HandleKeyboardEvent( | 136 void HandleKeyboardEvent( |
| 137 const content::NativeWebKeyboardEvent& event) override; | 137 const content::NativeWebKeyboardEvent& event) override; |
| 138 bool IsFrameless() const override; | 138 bool IsFrameless() const override; |
| 139 bool HasFrameColor() const override; | 139 bool HasFrameColor() const override; |
| 140 SkColor ActiveFrameColor() const override; | 140 SkColor ActiveFrameColor() const override; |
| 141 SkColor InactiveFrameColor() const override; | 141 SkColor InactiveFrameColor() const override; |
| 142 gfx::Insets GetFrameInsets() const override; | 142 gfx::Insets GetFrameInsets() const override; |
| 143 bool CanHaveAlphaEnabled() const override; | 143 bool CanHaveAlphaEnabled() const override; |
| 144 void SetActivateOnPointer(bool activate_on_pointer) override; |
| 144 | 145 |
| 145 // These are used to simulate Mac-style hide/show. Since windows can be hidden | 146 // These are used to simulate Mac-style hide/show. Since windows can be hidden |
| 146 // and shown using the app.window API, this sets is_hidden_with_app_ to | 147 // and shown using the app.window API, this sets is_hidden_with_app_ to |
| 147 // differentiate the reason a window was hidden. | 148 // differentiate the reason a window was hidden. |
| 148 void ShowWithApp() override; | 149 void ShowWithApp() override; |
| 149 void HideWithApp() override; | 150 void HideWithApp() override; |
| 150 gfx::Size GetContentMinimumSize() const override; | 151 gfx::Size GetContentMinimumSize() const override; |
| 151 gfx::Size GetContentMaximumSize() const override; | 152 gfx::Size GetContentMaximumSize() const override; |
| 152 void SetContentSizeConstraints(const gfx::Size& min_size, | 153 void SetContentSizeConstraints(const gfx::Size& min_size, |
| 153 const gfx::Size& max_size) override; | 154 const gfx::Size& max_size) override; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 std::unique_ptr<ExtensionKeybindingRegistryCocoa> | 219 std::unique_ptr<ExtensionKeybindingRegistryCocoa> |
| 219 extension_keybinding_registry_; | 220 extension_keybinding_registry_; |
| 220 | 221 |
| 221 // Tracks the last time the extension asked the window to activate. | 222 // Tracks the last time the extension asked the window to activate. |
| 222 base::Time last_activate_; | 223 base::Time last_activate_; |
| 223 | 224 |
| 224 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 225 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
| 225 }; | 226 }; |
| 226 | 227 |
| 227 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 228 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
| OLD | NEW |