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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 345 |
346 void DesktopNativeWidgetAura::OnBlur() { | 346 void DesktopNativeWidgetAura::OnBlur() { |
347 } | 347 } |
348 | 348 |
349 gfx::NativeCursor DesktopNativeWidgetAura::GetCursor(const gfx::Point& point) { | 349 gfx::NativeCursor DesktopNativeWidgetAura::GetCursor(const gfx::Point& point) { |
350 return gfx::kNullCursor; | 350 return gfx::kNullCursor; |
351 } | 351 } |
352 | 352 |
353 int DesktopNativeWidgetAura::GetNonClientComponent( | 353 int DesktopNativeWidgetAura::GetNonClientComponent( |
354 const gfx::Point& point) const { | 354 const gfx::Point& point) const { |
355 // TODO(beng): seems like this shouldn't be necessary here, right? | 355 return native_widget_delegate_->GetNonClientComponent(point); |
356 return HTCLIENT; | |
357 } | 356 } |
358 | 357 |
359 bool DesktopNativeWidgetAura::ShouldDescendIntoChildForEventHandling( | 358 bool DesktopNativeWidgetAura::ShouldDescendIntoChildForEventHandling( |
360 aura::Window* child, | 359 aura::Window* child, |
361 const gfx::Point& location) { | 360 const gfx::Point& location) { |
362 return true; | 361 return true; |
363 } | 362 } |
364 | 363 |
365 bool DesktopNativeWidgetAura::CanFocus() { | 364 bool DesktopNativeWidgetAura::CanFocus() { |
366 return true; | 365 return true; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { | 431 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { |
433 return ui::TOUCH_STATUS_UNKNOWN; | 432 return ui::TOUCH_STATUS_UNKNOWN; |
434 } | 433 } |
435 | 434 |
436 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( | 435 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( |
437 ui::GestureEvent* event) { | 436 ui::GestureEvent* event) { |
438 return ui::ER_UNHANDLED; | 437 return ui::ER_UNHANDLED; |
439 } | 438 } |
440 | 439 |
441 } // namespace views | 440 } // namespace views |
OLD | NEW |