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 <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "components/web_modal/web_contents_modal_dialog_host.h" | 11 #include "components/web_modal/web_contents_modal_dialog_host.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
13 #include "ui/base/base_window.h" | 13 #include "ui/base/base_window.h" |
14 #include "ui/gfx/geometry/insets.h" | 14 #include "ui/gfx/geometry/insets.h" |
15 | 15 |
| 16 class SkRegion; |
| 17 |
16 namespace content { | 18 namespace content { |
17 struct NativeWebKeyboardEvent; | 19 struct NativeWebKeyboardEvent; |
18 } | 20 } |
19 | 21 |
20 namespace extensions { | 22 namespace extensions { |
21 | 23 |
22 struct DraggableRegion; | 24 struct DraggableRegion; |
23 | 25 |
24 // This is an interface to a native implementation of a app window, used for | 26 // This is an interface to a native implementation of a app window, used for |
25 // new-style packaged apps. App windows contain a web contents, but no tabs | 27 // new-style packaged apps. App windows contain a web contents, but no tabs |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Returns false if the underlying native window ignores alpha transparency | 93 // Returns false if the underlying native window ignores alpha transparency |
92 // when compositing. | 94 // when compositing. |
93 virtual bool CanHaveAlphaEnabled() const = 0; | 95 virtual bool CanHaveAlphaEnabled() const = 0; |
94 | 96 |
95 ~NativeAppWindow() override {} | 97 ~NativeAppWindow() override {} |
96 }; | 98 }; |
97 | 99 |
98 } // namespace extensions | 100 } // namespace extensions |
99 | 101 |
100 #endif // EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_ | 102 #endif // EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_ |
OLD | NEW |