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

Side by Side Diff: ui/views/widget/native_widget_win.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/native_widget_win.h ('k') | ui/views/widget/widget.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/native_widget_win.h" 5 #include "ui/views/widget/native_widget_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 message_handler_->FlashFrame(flash); 440 message_handler_->FlashFrame(flash);
441 } 441 }
442 442
443 bool NativeWidgetWin::IsAccessibleWidget() const { 443 bool NativeWidgetWin::IsAccessibleWidget() const {
444 return screen_reader_active_; 444 return screen_reader_active_;
445 } 445 }
446 446
447 void NativeWidgetWin::RunShellDrag(View* view, 447 void NativeWidgetWin::RunShellDrag(View* view,
448 const ui::OSExchangeData& data, 448 const ui::OSExchangeData& data,
449 const gfx::Point& location, 449 const gfx::Point& location,
450 int operation) { 450 int operation,
451 views::RunShellDrag(NULL, data, location, operation); 451 ui::DragDropTypes::DragEventSource source) {
452 views::RunShellDrag(NULL, data, location, operation, source);
452 } 453 }
453 454
454 void NativeWidgetWin::SchedulePaintInRect(const gfx::Rect& rect) { 455 void NativeWidgetWin::SchedulePaintInRect(const gfx::Rect& rect) {
455 message_handler_->SchedulePaintInRect(rect); 456 message_handler_->SchedulePaintInRect(rect);
456 } 457 }
457 458
458 void NativeWidgetWin::SetCursor(gfx::NativeCursor cursor) { 459 void NativeWidgetWin::SetCursor(gfx::NativeCursor cursor) {
459 message_handler_->SetCursor(cursor); 460 message_handler_->SetCursor(cursor);
460 } 461 }
461 462
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 // static 1023 // static
1023 bool NativeWidgetPrivate::IsTouchDown() { 1024 bool NativeWidgetPrivate::IsTouchDown() {
1024 // This currently isn't necessary because we're not generating touch events on 1025 // This currently isn't necessary because we're not generating touch events on
1025 // windows. When we do, this will need to be updated. 1026 // windows. When we do, this will need to be updated.
1026 return false; 1027 return false;
1027 } 1028 }
1028 1029
1029 } // namespace internal 1030 } // namespace internal
1030 1031
1031 } // namespace views 1032 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698