| 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_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 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class Rect; | 11 class Rect; |
| 12 } | 12 } |
| 13 | 13 |
| 14 #if defined(OS_WIN) | |
| 15 typedef struct HINSTANCE__* HINSTANCE; | |
| 16 typedef struct HICON__* HICON; | |
| 17 typedef HICON HCURSOR; | |
| 18 #endif | |
| 19 | |
| 20 namespace ui { | 14 namespace ui { |
| 21 | 15 |
| 22 #if defined(OS_WIN) | 16 #if defined(USE_X11) |
| 23 typedef ::HCURSOR PlatformCursor; | |
| 24 #elif defined(USE_X11) | |
| 25 typedef unsigned long PlatformCursor; | 17 typedef unsigned long PlatformCursor; |
| 26 #else | 18 #else |
| 27 typedef void* PlatformCursor; | 19 typedef void* PlatformCursor; |
| 28 #endif | 20 #endif |
| 29 | 21 |
| 30 class PlatformWindowDelegate; | 22 class PlatformWindowDelegate; |
| 31 | 23 |
| 32 // Platform window. | 24 // Platform window. |
| 33 // | 25 // |
| 34 // Each instance of PlatformWindow represents a single window in the | 26 // Each instance of PlatformWindow represents a single window in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 54 virtual void Minimize() = 0; | 46 virtual void Minimize() = 0; |
| 55 virtual void Restore() = 0; | 47 virtual void Restore() = 0; |
| 56 | 48 |
| 57 virtual void SetCursor(PlatformCursor cursor) = 0; | 49 virtual void SetCursor(PlatformCursor cursor) = 0; |
| 58 virtual void MoveCursorTo(const gfx::Point& location) = 0; | 50 virtual void MoveCursorTo(const gfx::Point& location) = 0; |
| 59 }; | 51 }; |
| 60 | 52 |
| 61 } // namespace ui | 53 } // namespace ui |
| 62 | 54 |
| 63 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ | 55 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ |
| OLD | NEW |