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

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

Issue 873563002: [Ozone] Constrain the cursor when overscan insets are set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/ozone/platform/test/test_window.cc ('k') | ui/platform_window/win/win_window.h » ('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 #include "ui/base/cursor/cursor.h" 9 #include "ui/base/cursor/cursor.h"
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 virtual void SetCapture() = 0; 36 virtual void SetCapture() = 0;
37 virtual void ReleaseCapture() = 0; 37 virtual void ReleaseCapture() = 0;
38 38
39 virtual void ToggleFullscreen() = 0; 39 virtual void ToggleFullscreen() = 0;
40 virtual void Maximize() = 0; 40 virtual void Maximize() = 0;
41 virtual void Minimize() = 0; 41 virtual void Minimize() = 0;
42 virtual void Restore() = 0; 42 virtual void Restore() = 0;
43 43
44 virtual void SetCursor(PlatformCursor cursor) = 0; 44 virtual void SetCursor(PlatformCursor cursor) = 0;
45
46 // Moves the cursor to |location|. Location is in platform window coordinates.
45 virtual void MoveCursorTo(const gfx::Point& location) = 0; 47 virtual void MoveCursorTo(const gfx::Point& location) = 0;
48
49 // Confines the cursor to |bounds| when it is in the platform window. |bounds|
50 // is in platform window coordinates.
51 virtual void ConfineCursorToBounds(const gfx::Rect& bounds) = 0;
46 }; 52 };
47 53
48 } // namespace ui 54 } // namespace ui
49 55
50 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ 56 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/test/test_window.cc ('k') | ui/platform_window/win/win_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698