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