Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: ui/views/widget/desktop_native_widget_aura.cc

Issue 11368072: aura: Add flag to indicate if a drag session is started with touch or mouse. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/desktop_native_widget_aura.h ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_native_widget_aura.h ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698