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

Side by Side Diff: ui/ozone/platform/caca/caca_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, 10 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
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_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ 5 #ifndef UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_
6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ 6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_
7 7
8 #include <caca.h> 8 #include <caca.h>
9 9
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void Hide() override; 53 void Hide() override;
54 void Close() override; 54 void Close() override;
55 void SetCapture() override; 55 void SetCapture() override;
56 void ReleaseCapture() override; 56 void ReleaseCapture() override;
57 void ToggleFullscreen() override; 57 void ToggleFullscreen() override;
58 void Maximize() override; 58 void Maximize() override;
59 void Minimize() override; 59 void Minimize() override;
60 void Restore() override; 60 void Restore() override;
61 void SetCursor(PlatformCursor cursor) override; 61 void SetCursor(PlatformCursor cursor) override;
62 void MoveCursorTo(const gfx::Point& location) override; 62 void MoveCursorTo(const gfx::Point& location) override;
63 void ConfineCursorToBounds(const gfx::Rect& bounds) override;
63 64
64 // PlatformEventDispatcher: 65 // PlatformEventDispatcher:
65 bool CanDispatchEvent(const PlatformEvent& event) override; 66 bool CanDispatchEvent(const PlatformEvent& event) override;
66 uint32_t DispatchEvent(const PlatformEvent& event) override; 67 uint32_t DispatchEvent(const PlatformEvent& event) override;
67 68
68 private: 69 private:
69 // Event polling. 70 // Event polling.
70 void TryProcessingEvent(); 71 void TryProcessingEvent();
71 72
72 // Sync sizes with libcaca. 73 // Sync sizes with libcaca.
(...skipping 15 matching lines...) Expand all
88 gfx::Size bitmap_size_; 89 gfx::Size bitmap_size_;
89 90
90 base::WeakPtrFactory<CacaWindow> weak_ptr_factory_; 91 base::WeakPtrFactory<CacaWindow> weak_ptr_factory_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(CacaWindow); 93 DISALLOW_COPY_AND_ASSIGN(CacaWindow);
93 }; 94 };
94 95
95 } // namespace ui 96 } // namespace ui
96 97
97 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ 98 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc ('k') | ui/ozone/platform/caca/caca_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698