| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_ | 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_ |
| 6 #define EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_ | 6 #define EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Returns the minimum size constraints of the content. | 85 // Returns the minimum size constraints of the content. |
| 86 virtual gfx::Size GetContentMinimumSize() const = 0; | 86 virtual gfx::Size GetContentMinimumSize() const = 0; |
| 87 | 87 |
| 88 // Returns the maximum size constraints of the content. | 88 // Returns the maximum size constraints of the content. |
| 89 virtual gfx::Size GetContentMaximumSize() const = 0; | 89 virtual gfx::Size GetContentMaximumSize() const = 0; |
| 90 | 90 |
| 91 // Updates the minimum and maximum size constraints of the content. | 91 // Updates the minimum and maximum size constraints of the content. |
| 92 virtual void SetContentSizeConstraints(const gfx::Size& min_size, | 92 virtual void SetContentSizeConstraints(const gfx::Size& min_size, |
| 93 const gfx::Size& max_size) = 0; | 93 const gfx::Size& max_size) = 0; |
| 94 | 94 |
| 95 // Returns whether the window show be visible on all workspaces. |
| 96 virtual void SetVisibleOnAllWorkspaces(bool always_visible) = 0; |
| 97 |
| 95 // Returns false if the underlying native window ignores alpha transparency | 98 // Returns false if the underlying native window ignores alpha transparency |
| 96 // when compositing. | 99 // when compositing. |
| 97 virtual bool CanHaveAlphaEnabled() const = 0; | 100 virtual bool CanHaveAlphaEnabled() const = 0; |
| 98 | 101 |
| 99 virtual ~NativeAppWindow() {} | 102 virtual ~NativeAppWindow() {} |
| 100 }; | 103 }; |
| 101 | 104 |
| 102 } // namespace extensions | 105 } // namespace extensions |
| 103 | 106 |
| 104 #endif // EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_ | 107 #endif // EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_ |
| OLD | NEW |