| 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/base/hit_test.h" | 7 #include "ui/base/hit_test.h" |
| 8 #include "ui/views/widget/desktop_root_window_host.h" | 8 #include "ui/views/widget/desktop_root_window_host.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 void DesktopNativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds, | 295 void DesktopNativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 296 const gfx::Rect& new_bounds) { | 296 const gfx::Rect& new_bounds) { |
| 297 } | 297 } |
| 298 | 298 |
| 299 void DesktopNativeWidgetAura::OnFocus(aura::Window* old_focused_window) { | 299 void DesktopNativeWidgetAura::OnFocus(aura::Window* old_focused_window) { |
| 300 } | 300 } |
| 301 | 301 |
| 302 void DesktopNativeWidgetAura::OnBlur() { | 302 void DesktopNativeWidgetAura::OnBlur() { |
| 303 } | 303 } |
| 304 | 304 |
| 305 bool DesktopNativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) { | |
| 306 return false; | |
| 307 } | |
| 308 | |
| 309 gfx::NativeCursor DesktopNativeWidgetAura::GetCursor(const gfx::Point& point) { | 305 gfx::NativeCursor DesktopNativeWidgetAura::GetCursor(const gfx::Point& point) { |
| 310 return gfx::kNullCursor; | 306 return gfx::kNullCursor; |
| 311 } | 307 } |
| 312 | 308 |
| 313 int DesktopNativeWidgetAura::GetNonClientComponent( | 309 int DesktopNativeWidgetAura::GetNonClientComponent( |
| 314 const gfx::Point& point) const { | 310 const gfx::Point& point) const { |
| 315 return HTCLIENT; | 311 return HTCLIENT; |
| 316 } | 312 } |
| 317 | 313 |
| 318 bool DesktopNativeWidgetAura::ShouldDescendIntoChildForEventHandling( | 314 bool DesktopNativeWidgetAura::ShouldDescendIntoChildForEventHandling( |
| 319 aura::Window* child, | 315 aura::Window* child, |
| 320 const gfx::Point& location) { | 316 const gfx::Point& location) { |
| 321 return true; | 317 return true; |
| 322 } | 318 } |
| 323 | 319 |
| 324 bool DesktopNativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) { | |
| 325 return false; | |
| 326 } | |
| 327 | |
| 328 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { | |
| 329 return ui::TOUCH_STATUS_UNKNOWN; | |
| 330 } | |
| 331 | |
| 332 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( | |
| 333 ui::GestureEvent* event) { | |
| 334 return ui::ER_UNHANDLED; | |
| 335 } | |
| 336 | |
| 337 bool DesktopNativeWidgetAura::CanFocus() { | 320 bool DesktopNativeWidgetAura::CanFocus() { |
| 338 return true; | 321 return true; |
| 339 } | 322 } |
| 340 | 323 |
| 341 void DesktopNativeWidgetAura::OnCaptureLost() { | 324 void DesktopNativeWidgetAura::OnCaptureLost() { |
| 342 } | 325 } |
| 343 | 326 |
| 344 void DesktopNativeWidgetAura::OnPaint(gfx::Canvas* canvas) { | 327 void DesktopNativeWidgetAura::OnPaint(gfx::Canvas* canvas) { |
| 345 } | 328 } |
| 346 | 329 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 357 void DesktopNativeWidgetAura::OnWindowTargetVisibilityChanged(bool visible) { | 340 void DesktopNativeWidgetAura::OnWindowTargetVisibilityChanged(bool visible) { |
| 358 } | 341 } |
| 359 | 342 |
| 360 bool DesktopNativeWidgetAura::HasHitTestMask() const { | 343 bool DesktopNativeWidgetAura::HasHitTestMask() const { |
| 361 return false; | 344 return false; |
| 362 } | 345 } |
| 363 | 346 |
| 364 void DesktopNativeWidgetAura::GetHitTestMask(gfx::Path* mask) const { | 347 void DesktopNativeWidgetAura::GetHitTestMask(gfx::Path* mask) const { |
| 365 } | 348 } |
| 366 | 349 |
| 350 //////////////////////////////////////////////////////////////////////////////// |
| 351 // DesktopNativeWidgetAura, ui::EventHandler implementation: |
| 352 |
| 353 ui::EventResult DesktopNativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) { |
| 354 return ui::ER_UNHANDLED; |
| 355 } |
| 356 |
| 357 ui::EventResult DesktopNativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) { |
| 358 return ui::ER_UNHANDLED; |
| 359 } |
| 360 |
| 361 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { |
| 362 return ui::TOUCH_STATUS_UNKNOWN; |
| 363 } |
| 364 |
| 365 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( |
| 366 ui::GestureEvent* event) { |
| 367 return ui::ER_UNHANDLED; |
| 368 } |
| 369 |
| 367 } // namespace views | 370 } // namespace views |
| OLD | NEW |