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

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

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 8 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
« no previous file with comments | « ui/platform_window/DEPS ('k') | ui/platform_window/win/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « ui/platform_window/DEPS ('k') | ui/platform_window/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698