| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/views/widget/desktop_native_widget_aura.h" | 5 #include "ui/views/widget/desktop_native_widget_aura.h" |
| 6 | 6 |
| 7 #include "ui/aura/root_window_host.h" | 7 #include "ui/aura/root_window_host.h" |
| 8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 9 #include "ui/base/hit_test.h" | 9 #include "ui/base/hit_test.h" |
| 10 #include "ui/compositor/layer.h" | 10 #include "ui/compositor/layer.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 const gfx::Point& location, | 279 const gfx::Point& location, |
| 280 int operation) { | 280 int operation) { |
| 281 } | 281 } |
| 282 | 282 |
| 283 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) { | 283 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) { |
| 284 if (window_) | 284 if (window_) |
| 285 window_->SchedulePaintInRect(rect); | 285 window_->SchedulePaintInRect(rect); |
| 286 } | 286 } |
| 287 | 287 |
| 288 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) { | 288 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) { |
| 289 desktop_root_window_host_->AsRootWindowHost()->SetCursor(cursor); |
| 289 } | 290 } |
| 290 | 291 |
| 291 void DesktopNativeWidgetAura::ClearNativeFocus() { | 292 void DesktopNativeWidgetAura::ClearNativeFocus() { |
| 292 } | 293 } |
| 293 | 294 |
| 294 void DesktopNativeWidgetAura::FocusNativeView(gfx::NativeView native_view) { | 295 void DesktopNativeWidgetAura::FocusNativeView(gfx::NativeView native_view) { |
| 295 } | 296 } |
| 296 | 297 |
| 297 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const { | 298 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const { |
| 298 return gfx::Rect(100, 100); | 299 return gfx::Rect(100, 100); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { | 420 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { |
| 420 return ui::TOUCH_STATUS_UNKNOWN; | 421 return ui::TOUCH_STATUS_UNKNOWN; |
| 421 } | 422 } |
| 422 | 423 |
| 423 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( | 424 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( |
| 424 ui::GestureEvent* event) { | 425 ui::GestureEvent* event) { |
| 425 return ui::ER_UNHANDLED; | 426 return ui::ER_UNHANDLED; |
| 426 } | 427 } |
| 427 | 428 |
| 428 } // namespace views | 429 } // namespace views |
| OLD | NEW |