| Index: components/native_app_window/native_app_window.h
|
| diff --git a/extensions/browser/app_window/native_app_window.h b/components/native_app_window/native_app_window.h
|
| similarity index 89%
|
| copy from extensions/browser/app_window/native_app_window.h
|
| copy to components/native_app_window/native_app_window.h
|
| index b5007dde4f80b26c4be88fe484f5c7b6e98d4853..68a8e6bb80df51b352a3e79ffbf1d05c0437a7a3 100644
|
| --- a/extensions/browser/app_window/native_app_window.h
|
| +++ b/components/native_app_window/native_app_window.h
|
| @@ -2,12 +2,13 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_
|
| -#define EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_
|
| +#ifndef COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_H_
|
| +#define COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_H_
|
|
|
| #include <vector>
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "components/native_app_window/native_app_window_export.h"
|
| #include "components/web_modal/web_contents_modal_dialog_host.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| #include "ui/base/base_window.h"
|
| @@ -17,15 +18,16 @@ namespace content {
|
| struct NativeWebKeyboardEvent;
|
| }
|
|
|
| -namespace extensions {
|
| +namespace native_app_window {
|
|
|
| struct DraggableRegion;
|
|
|
| // This is an interface to a native implementation of a app window, used for
|
| // new-style packaged apps. App windows contain a web contents, but no tabs
|
| // or URL bar.
|
| -class NativeAppWindow : public ui::BaseWindow,
|
| - public web_modal::WebContentsModalDialogHost {
|
| +class NATIVE_APP_WINDOW_EXPORT NativeAppWindow
|
| + : public ui::BaseWindow,
|
| + public web_modal::WebContentsModalDialogHost {
|
| public:
|
| // Sets whether the window is fullscreen and the type of fullscreen.
|
| // |fullscreen_types| is a bit field of AppWindow::FullscreenType.
|
| @@ -98,10 +100,8 @@ class NativeAppWindow : public ui::BaseWindow,
|
| // Returns false if the underlying native window ignores alpha transparency
|
| // when compositing.
|
| virtual bool CanHaveAlphaEnabled() const = 0;
|
| -
|
| - virtual ~NativeAppWindow() {}
|
| };
|
|
|
| -} // namespace extensions
|
| +} // namespace native_app_window
|
|
|
| -#endif // EXTENSIONS_BROWSER_APP_WINDOW_NATIVE_APP_WINDOW_H_
|
| +#endif // COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_H_
|
|
|