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

Unified Diff: ui/aura/window_tree_host_ozone.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window_tree_host_ozone.h ('k') | ui/events/ozone/evdev/cursor_delegate_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_ozone.cc
diff --git a/ui/aura/window_tree_host_ozone.cc b/ui/aura/window_tree_host_ozone.cc
index 69ec8dd00cc0fa2d2799aa8cff69be89551a54e3..0b6df97bb1717ac05c277c5fc313570a4c2a2551 100644
--- a/ui/aura/window_tree_host_ozone.cc
+++ b/ui/aura/window_tree_host_ozone.cc
@@ -21,46 +21,6 @@ WindowTreeHostOzone::~WindowTreeHostOzone() {
DestroyDispatcher();
}
-gfx::Rect WindowTreeHostOzone::GetBounds() const {
- return platform_window_->GetBounds();
-}
-
-void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) {
- // TOOD(spang): Should we determine which parts changed?
- OnHostResized(new_bounds.size());
- OnHostMoved(new_bounds.origin());
-}
-
-void WindowTreeHostOzone::OnDamageRect(const gfx::Rect& damaged_region) {
-}
-
-void WindowTreeHostOzone::DispatchEvent(ui::Event* event) {
- SendEventToProcessor(event);
-}
-
-void WindowTreeHostOzone::OnCloseRequest() {
- OnHostCloseRequested();
-}
-
-void WindowTreeHostOzone::OnClosed() {
-}
-
-void WindowTreeHostOzone::OnWindowStateChanged(
- ui::PlatformWindowState new_state) {
-}
-
-void WindowTreeHostOzone::OnLostCapture() {
-}
-
-void WindowTreeHostOzone::OnAcceleratedWidgetAvailable(
- gfx::AcceleratedWidget widget) {
- widget_ = widget;
- CreateCompositor(widget_);
-}
-
-void WindowTreeHostOzone::OnActivationChanged(bool active) {
-}
-
ui::EventSource* WindowTreeHostOzone::GetEventSource() {
return this;
}
@@ -77,6 +37,10 @@ void WindowTreeHostOzone::Hide() {
platform_window_->Hide();
}
+gfx::Rect WindowTreeHostOzone::GetBounds() const {
+ return platform_window_->GetBounds();
+}
+
void WindowTreeHostOzone::SetBounds(const gfx::Rect& bounds) {
platform_window_->SetBounds(bounds);
}
@@ -107,6 +71,42 @@ void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) {
void WindowTreeHostOzone::OnCursorVisibilityChangedNative(bool show) {
}
+void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) {
+ // TOOD(spang): Should we determine which parts changed?
+ OnHostResized(new_bounds.size());
+ OnHostMoved(new_bounds.origin());
+}
+
+void WindowTreeHostOzone::OnDamageRect(const gfx::Rect& damaged_region) {
+}
+
+void WindowTreeHostOzone::DispatchEvent(ui::Event* event) {
+ SendEventToProcessor(event);
+}
+
+void WindowTreeHostOzone::OnCloseRequest() {
+ OnHostCloseRequested();
+}
+
+void WindowTreeHostOzone::OnClosed() {
+}
+
+void WindowTreeHostOzone::OnWindowStateChanged(
+ ui::PlatformWindowState new_state) {
+}
+
+void WindowTreeHostOzone::OnLostCapture() {
+}
+
+void WindowTreeHostOzone::OnAcceleratedWidgetAvailable(
+ gfx::AcceleratedWidget widget) {
+ widget_ = widget;
+ CreateCompositor(widget_);
+}
+
+void WindowTreeHostOzone::OnActivationChanged(bool active) {
+}
+
ui::EventProcessor* WindowTreeHostOzone::GetEventProcessor() {
return dispatcher();
}
« no previous file with comments | « ui/aura/window_tree_host_ozone.h ('k') | ui/events/ozone/evdev/cursor_delegate_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698