| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 desktop_root_window_host_->AsRootWindowHost()->SetCursor(cursor); |
| 302 } | 302 } |
| 303 | 303 |
| 304 void DesktopNativeWidgetAura::ClearNativeFocus() { | 304 void DesktopNativeWidgetAura::ClearNativeFocus() { |
| 305 } | 305 desktop_root_window_host_->ClearNativeFocus(); |
| 306 | |
| 307 void DesktopNativeWidgetAura::FocusNativeView(gfx::NativeView native_view) { | |
| 308 } | 306 } |
| 309 | 307 |
| 310 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const { | 308 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const { |
| 311 return gfx::Rect(100, 100); | 309 return gfx::Rect(100, 100); |
| 312 } | 310 } |
| 313 | 311 |
| 314 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { | 312 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { |
| 315 } | 313 } |
| 316 | 314 |
| 317 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( | 315 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { | 430 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { |
| 433 return ui::TOUCH_STATUS_UNKNOWN; | 431 return ui::TOUCH_STATUS_UNKNOWN; |
| 434 } | 432 } |
| 435 | 433 |
| 436 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( | 434 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( |
| 437 ui::GestureEvent* event) { | 435 ui::GestureEvent* event) { |
| 438 return ui::ER_UNHANDLED; | 436 return ui::ER_UNHANDLED; |
| 439 } | 437 } |
| 440 | 438 |
| 441 } // namespace views | 439 } // namespace views |
| OLD | NEW |