Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / ui / ozone / platform / cast / platform_window_cast.h
blob78411cbabb22908ca9661418e8f2bdd757008349
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
6 #define UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
8 #include "ui/gfx/geometry/rect.h"
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/platform_window/platform_window.h"
12 namespace ui {
14 class PlatformWindowCast : public PlatformWindow {
15 public:
16 PlatformWindowCast(PlatformWindowDelegate* delegate, const gfx::Rect& bounds);
17 ~PlatformWindowCast() override {}
19 // PlatformWindow implementation:
20 gfx::Rect GetBounds() override;
21 void SetBounds(const gfx::Rect& bounds) override;
22 void SetTitle(const base::string16& title) override;
23 void Show() override {}
24 void Hide() override {}
25 void Close() override {}
26 void SetCapture() override {}
27 void ReleaseCapture() override {}
28 void ToggleFullscreen() override {}
29 void Maximize() override {}
30 void Minimize() override {}
31 void Restore() override {}
32 void SetCursor(PlatformCursor cursor) override {}
33 void MoveCursorTo(const gfx::Point& location) override {}
34 void ConfineCursorToBounds(const gfx::Rect& bounds) override {}
35 PlatformImeController* GetPlatformImeController() override;
37 private:
38 PlatformWindowDelegate* delegate_;
39 gfx::Rect bounds_;
40 gfx::AcceleratedWidget widget_;
42 DISALLOW_COPY_AND_ASSIGN(PlatformWindowCast);
45 } // namespace ui
47 #endif // UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_