| 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 UI_OZONE_PLATFORM_HEADLESS_HEADLESS_WINDOW_H_ | 5 #ifndef UI_OZONE_PLATFORM_HEADLESS_HEADLESS_WINDOW_H_ |
| 6 #define UI_OZONE_PLATFORM_HEADLESS_HEADLESS_WINDOW_H_ | 6 #define UI_OZONE_PLATFORM_HEADLESS_HEADLESS_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // Path for image file for this window. | 26 // Path for image file for this window. |
| 27 base::FilePath path(); | 27 base::FilePath path(); |
| 28 | 28 |
| 29 // PlatformWindow: | 29 // PlatformWindow: |
| 30 gfx::Rect GetBounds() override; | 30 gfx::Rect GetBounds() override; |
| 31 void SetBounds(const gfx::Rect& bounds) override; | 31 void SetBounds(const gfx::Rect& bounds) override; |
| 32 void SetTitle(const base::string16& title) override; | 32 void SetTitle(const base::string16& title) override; |
| 33 void Show() override; | 33 void Show() override; |
| 34 void Hide() override; | 34 void Hide() override; |
| 35 void Close() override; | 35 void Close() override; |
| 36 void PrepareForShutdown() override; |
| 36 void SetCapture() override; | 37 void SetCapture() override; |
| 37 void ReleaseCapture() override; | 38 void ReleaseCapture() override; |
| 38 void ToggleFullscreen() override; | 39 void ToggleFullscreen() override; |
| 39 void Maximize() override; | 40 void Maximize() override; |
| 40 void Minimize() override; | 41 void Minimize() override; |
| 41 void Restore() override; | 42 void Restore() override; |
| 42 void SetCursor(PlatformCursor cursor) override; | 43 void SetCursor(PlatformCursor cursor) override; |
| 43 void MoveCursorTo(const gfx::Point& location) override; | 44 void MoveCursorTo(const gfx::Point& location) override; |
| 44 void ConfineCursorToBounds(const gfx::Rect& bounds) override; | 45 void ConfineCursorToBounds(const gfx::Rect& bounds) override; |
| 45 PlatformImeController* GetPlatformImeController() override; | 46 PlatformImeController* GetPlatformImeController() override; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 PlatformWindowDelegate* delegate_; | 49 PlatformWindowDelegate* delegate_; |
| 49 HeadlessWindowManager* manager_; | 50 HeadlessWindowManager* manager_; |
| 50 gfx::Rect bounds_; | 51 gfx::Rect bounds_; |
| 51 gfx::AcceleratedWidget widget_; | 52 gfx::AcceleratedWidget widget_; |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(HeadlessWindow); | 54 DISALLOW_COPY_AND_ASSIGN(HeadlessWindow); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace ui | 57 } // namespace ui |
| 57 | 58 |
| 58 #endif // UI_OZONE_PLATFORM_HEADLESS_HEADLESS_WINDOW_H_ | 59 #endif // UI_OZONE_PLATFORM_HEADLESS_HEADLESS_WINDOW_H_ |
| OLD | NEW |