Corrects shelf background to blend with the dock
[chromium-blink-merge.git] / ui / platform_window / platform_window.h
blob37cd3c0c20910d8fe05535e96eb33d56bfa170fd
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
3 // found in the LICENSE file.
5 #ifndef UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_
6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_
8 #include "base/memory/scoped_ptr.h"
10 namespace gfx {
11 class Rect;
14 namespace ui {
16 class PlatformWindowDelegate;
18 // Platform window.
20 // Each instance of PlatformWindow represents a single window in the
21 // underlying platform windowing system (i.e. X11/Win/OSX).
22 class PlatformWindow {
23 public:
24 virtual ~PlatformWindow() {}
26 virtual void Show() = 0;
27 virtual void Hide() = 0;
28 virtual void Close() = 0;
30 // Sets and gets the bounds of the platform-window. Note that the bounds is in
31 // physical pixel coordinates.
32 virtual void SetBounds(const gfx::Rect& bounds) = 0;
33 virtual gfx::Rect GetBounds() = 0;
35 virtual void SetCapture() = 0;
36 virtual void ReleaseCapture() = 0;
38 virtual void ToggleFullscreen() = 0;
39 virtual void Maximize() = 0;
40 virtual void Minimize() = 0;
41 virtual void Restore() = 0;
44 } // namespace ui
46 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_