Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: ui/platform_window/platform_window.h

Issue 405813002: win32: Add a PlatformWindow implementation for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-move-resize Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ 5 #ifndef UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_
6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ 6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/platform_window/platform_window_export.h"
10 9
11 namespace gfx { 10 namespace gfx {
12 class Rect; 11 class Rect;
13 } 12 }
14 13
15 namespace ui { 14 namespace ui {
16 15
17 class PlatformWindowDelegate; 16 class PlatformWindowDelegate;
18 17
19 // Platform window. 18 // Platform window.
20 // 19 //
21 // Each instance of PlatformWindow represents a single window in the 20 // Each instance of PlatformWindow represents a single window in the
22 // underlying platform windowing system (i.e. X11/Win/OSX). 21 // underlying platform windowing system (i.e. X11/Win/OSX).
23 class PLATFORM_WINDOW_EXPORT PlatformWindow { 22 class PlatformWindow {
24 public: 23 public:
25 virtual ~PlatformWindow() {} 24 virtual ~PlatformWindow() {}
26 25
27 virtual void Show() = 0; 26 virtual void Show() = 0;
28 virtual void Hide() = 0; 27 virtual void Hide() = 0;
29 virtual void Close() = 0; 28 virtual void Close() = 0;
30 29
31 // Sets and gets the bounds of the platform-window. Note that the bounds is in 30 // Sets and gets the bounds of the platform-window. Note that the bounds is in
32 // physical pixel coordinates. 31 // physical pixel coordinates.
33 virtual void SetBounds(const gfx::Rect& bounds) = 0; 32 virtual void SetBounds(const gfx::Rect& bounds) = 0;
34 virtual gfx::Rect GetBounds() = 0; 33 virtual gfx::Rect GetBounds() = 0;
35 34
36 virtual void SetCapture() = 0; 35 virtual void SetCapture() = 0;
37 virtual void ReleaseCapture() = 0; 36 virtual void ReleaseCapture() = 0;
38 37
39 virtual void ToggleFullscreen() = 0; 38 virtual void ToggleFullscreen() = 0;
40 virtual void Maximize() = 0; 39 virtual void Maximize() = 0;
41 virtual void Minimize() = 0; 40 virtual void Minimize() = 0;
42 virtual void Restore() = 0; 41 virtual void Restore() = 0;
43 }; 42 };
44 43
45 } // namespace ui 44 } // namespace ui
46 45
47 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ 46 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/native_viewport_win.cc ('k') | ui/platform_window/platform_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698