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

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

Issue 431683002: platform_window: Add SetCursor & MoveCursorTo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « ui/platform_window/platform_window.h ('k') | ui/platform_window/win/win_window.cc » ('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_WIN_WIN_WINDOW_H_ 5 #ifndef UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ 6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/win/window_impl.h" 9 #include "ui/gfx/win/window_impl.h"
10 #include "ui/platform_window/platform_window.h" 10 #include "ui/platform_window/platform_window.h"
(...skipping 15 matching lines...) Expand all
26 virtual void Hide() OVERRIDE; 26 virtual void Hide() OVERRIDE;
27 virtual void Close() OVERRIDE; 27 virtual void Close() OVERRIDE;
28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
29 virtual gfx::Rect GetBounds() OVERRIDE; 29 virtual gfx::Rect GetBounds() OVERRIDE;
30 virtual void SetCapture() OVERRIDE; 30 virtual void SetCapture() OVERRIDE;
31 virtual void ReleaseCapture() OVERRIDE; 31 virtual void ReleaseCapture() OVERRIDE;
32 virtual void ToggleFullscreen() OVERRIDE; 32 virtual void ToggleFullscreen() OVERRIDE;
33 virtual void Maximize() OVERRIDE; 33 virtual void Maximize() OVERRIDE;
34 virtual void Minimize() OVERRIDE; 34 virtual void Minimize() OVERRIDE;
35 virtual void Restore() OVERRIDE; 35 virtual void Restore() OVERRIDE;
36 virtual void SetCursor(PlatformCursor cursor) OVERRIDE;
37 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
36 38
37 CR_BEGIN_MSG_MAP_EX(WinWindow) 39 CR_BEGIN_MSG_MAP_EX(WinWindow)
38 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) 40 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
39 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, 41 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE,
40 WM_NCXBUTTONDBLCLK, 42 WM_NCXBUTTONDBLCLK,
41 OnMouseRange) 43 OnMouseRange)
42 CR_MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) 44 CR_MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged)
43 45
44 CR_MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) 46 CR_MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent)
45 CR_MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) 47 CR_MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Set true to let WindowTreeHostWin use a popup window 79 // Set true to let WindowTreeHostWin use a popup window
78 // with no frame/title so that the window size and test's 80 // with no frame/title so that the window size and test's
79 // expectations matches. 81 // expectations matches.
80 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); 82 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use);
81 83
82 } // namespace test 84 } // namespace test
83 85
84 } // namespace ui 86 } // namespace ui
85 87
86 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ 88 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/platform_window/platform_window.h ('k') | ui/platform_window/win/win_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698