| Index: ui/aura/local/window_port_local.h
|
| diff --git a/ui/aura/window_port_local.h b/ui/aura/local/window_port_local.h
|
| similarity index 65%
|
| rename from ui/aura/window_port_local.h
|
| rename to ui/aura/local/window_port_local.h
|
| index a3b33ce934670ad202ca0b8ab8c62f7c79352327..4f6cb9ece40aad53f45e843af0378e53ee6006be 100644
|
| --- a/ui/aura/window_port_local.h
|
| +++ b/ui/aura/local/window_port_local.h
|
| @@ -2,13 +2,23 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef UI_AURA_WINDOW_PORT_LOCAL_H_
|
| -#define UI_AURA_WINDOW_PORT_LOCAL_H_
|
| +#ifndef UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_
|
| +#define UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_
|
|
|
| #include "base/macros.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "cc/surfaces/frame_sink_id.h"
|
| #include "ui/aura/window_port.h"
|
| #include "ui/base/property_data.h"
|
|
|
| +namespace cc {
|
| +class SurfaceId;
|
| +}
|
| +
|
| +namespace gfx {
|
| +class Size;
|
| +}
|
| +
|
| namespace aura {
|
|
|
| class Window;
|
| @@ -33,13 +43,23 @@ class AURA_EXPORT WindowPortLocal : public WindowPort {
|
| void OnPropertyChanged(const void* key,
|
| int64_t old_value,
|
| std::unique_ptr<ui::PropertyData> data) override;
|
| + std::unique_ptr<cc::CompositorFrameSink> OnCreateCompositorFrameSink()
|
| + override;
|
| + void OnWindowAddedToRootWindow() override;
|
| + void OnWindowRemovingFromRootWindow() override;
|
|
|
| private:
|
| - Window* window_;
|
| + void OnSurfaceChanged(const cc::SurfaceId& surface_id,
|
| + const gfx::Size& surface_size);
|
| +
|
| + Window* const window_;
|
| + cc::FrameSinkId frame_sink_id_;
|
| +
|
| + base::WeakPtrFactory<WindowPortLocal> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WindowPortLocal);
|
| };
|
|
|
| } // namespace aura
|
|
|
| -#endif // UI_AURA_WINDOW_PORT_LOCAL_H_
|
| +#endif // UI_AURA_LOCAL_WINDOW_PORT_LOCAL_H_
|
|
|