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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "ui/aura/client/stacking_client.h" | 8 #include "ui/aura/client/stacking_client.h" |
9 #include "ui/aura/focus_manager.h" | 9 #include "ui/aura/focus_manager.h" |
10 #include "ui/aura/root_window.h" | 10 #include "ui/aura/root_window.h" |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 desktop_root_window_host_->FlashFrame(flash_frame); | 364 desktop_root_window_host_->FlashFrame(flash_frame); |
365 } | 365 } |
366 | 366 |
367 bool DesktopNativeWidgetAura::IsAccessibleWidget() const { | 367 bool DesktopNativeWidgetAura::IsAccessibleWidget() const { |
368 return false; | 368 return false; |
369 } | 369 } |
370 | 370 |
371 void DesktopNativeWidgetAura::RunShellDrag(View* view, | 371 void DesktopNativeWidgetAura::RunShellDrag(View* view, |
372 const ui::OSExchangeData& data, | 372 const ui::OSExchangeData& data, |
373 const gfx::Point& location, | 373 const gfx::Point& location, |
374 int operation) { | 374 int operation, |
| 375 ui::DragDropTypes::DragEventSource source) { |
375 } | 376 } |
376 | 377 |
377 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) { | 378 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) { |
378 if (window_) | 379 if (window_) |
379 window_->SchedulePaintInRect(rect); | 380 window_->SchedulePaintInRect(rect); |
380 } | 381 } |
381 | 382 |
382 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) { | 383 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) { |
383 desktop_root_window_host_->AsRootWindowHost()->SetCursor(cursor); | 384 desktop_root_window_host_->AsRootWindowHost()->SetCursor(cursor); |
384 } | 385 } |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 GetWidget()->non_client_view()->SchedulePaint(); | 571 GetWidget()->non_client_view()->SchedulePaint(); |
571 } | 572 } |
572 | 573 |
573 void DesktopNativeWidgetAura::OnLostActive() { | 574 void DesktopNativeWidgetAura::OnLostActive() { |
574 native_widget_delegate_->OnNativeWidgetActivationChanged(false); | 575 native_widget_delegate_->OnNativeWidgetActivationChanged(false); |
575 if (IsVisible() && GetWidget()->non_client_view()) | 576 if (IsVisible() && GetWidget()->non_client_view()) |
576 GetWidget()->non_client_view()->SchedulePaint(); | 577 GetWidget()->non_client_view()->SchedulePaint(); |
577 } | 578 } |
578 | 579 |
579 } // namespace views | 580 } // namespace views |
OLD | NEW |