| 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.h" | 7 #include "ui/aura/root_window.h" |
| 8 #include "ui/aura/root_window_host.h" | 8 #include "ui/aura/root_window_host.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 const gfx::Point& location, | 291 const gfx::Point& location, |
| 292 int operation) { | 292 int operation) { |
| 293 } | 293 } |
| 294 | 294 |
| 295 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) { | 295 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) { |
| 296 if (window_) | 296 if (window_) |
| 297 window_->SchedulePaintInRect(rect); | 297 window_->SchedulePaintInRect(rect); |
| 298 } | 298 } |
| 299 | 299 |
| 300 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) { | 300 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) { |
| 301 desktop_root_window_host_->AsRootWindowHost()->SetCursor(cursor); |
| 301 } | 302 } |
| 302 | 303 |
| 303 void DesktopNativeWidgetAura::ClearNativeFocus() { | 304 void DesktopNativeWidgetAura::ClearNativeFocus() { |
| 304 } | 305 } |
| 305 | 306 |
| 306 void DesktopNativeWidgetAura::FocusNativeView(gfx::NativeView native_view) { | 307 void DesktopNativeWidgetAura::FocusNativeView(gfx::NativeView native_view) { |
| 307 } | 308 } |
| 308 | 309 |
| 309 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const { | 310 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const { |
| 310 return gfx::Rect(100, 100); | 311 return gfx::Rect(100, 100); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { | 432 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { |
| 432 return ui::TOUCH_STATUS_UNKNOWN; | 433 return ui::TOUCH_STATUS_UNKNOWN; |
| 433 } | 434 } |
| 434 | 435 |
| 435 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( | 436 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( |
| 436 ui::GestureEvent* event) { | 437 ui::GestureEvent* event) { |
| 437 return ui::ER_UNHANDLED; | 438 return ui::ER_UNHANDLED; |
| 438 } | 439 } |
| 439 | 440 |
| 440 } // namespace views | 441 } // namespace views |
| OLD | NEW |