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

Side by Side Diff: views/widget/native_widget_aura.cc

Issue 8450018: First shot at implementing drag&drop for Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 9 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
« views/views.gyp ('K') | « views/views.gyp ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/widget/native_widget_aura.h" 5 #include "views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/string_util.h"
8 #include "ui/aura/aura_constants.h" 9 #include "ui/aura/aura_constants.h"
9 #include "ui/aura/desktop.h" 10 #include "ui/aura/desktop.h"
10 #include "ui/aura/desktop_observer.h" 11 #include "ui/aura/desktop_observer.h"
11 #include "ui/aura/event.h" 12 #include "ui/aura/event.h"
12 #include "ui/aura/window.h" 13 #include "ui/aura/window.h"
13 #include "ui/aura/window_types.h" 14 #include "ui/aura/window_types.h"
14 #include "ui/base/ui_base_types.h" 15 #include "ui/base/ui_base_types.h"
15 #include "ui/gfx/canvas.h" 16 #include "ui/gfx/canvas.h"
16 #include "ui/gfx/compositor/layer.h" 17 #include "ui/gfx/compositor/layer.h"
17 #include "ui/gfx/font.h" 18 #include "ui/gfx/font.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 466
466 bool NativeWidgetAura::IsAccessibleWidget() const { 467 bool NativeWidgetAura::IsAccessibleWidget() const {
467 // http://crbug.com/102570 468 // http://crbug.com/102570
468 //NOTIMPLEMENTED(); 469 //NOTIMPLEMENTED();
469 return false; 470 return false;
470 } 471 }
471 472
472 void NativeWidgetAura::RunShellDrag(View* view, 473 void NativeWidgetAura::RunShellDrag(View* view,
473 const ui::OSExchangeData& data, 474 const ui::OSExchangeData& data,
474 int operation) { 475 int operation) {
475 // http://crbug.com/97845 476 aura::Desktop::GetInstance()->StartDragAndDrop(data, operation);
476 NOTIMPLEMENTED();
477 } 477 }
478 478
479 void NativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) { 479 void NativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) {
480 if (window_) 480 if (window_)
481 window_->SchedulePaintInRect(rect); 481 window_->SchedulePaintInRect(rect);
482 } 482 }
483 483
484 void NativeWidgetAura::SetCursor(gfx::NativeCursor cursor) { 484 void NativeWidgetAura::SetCursor(gfx::NativeCursor cursor) {
485 cursor_ = cursor; 485 cursor_ = cursor;
486 aura::Desktop::GetInstance()->SetCursor(cursor); 486 aura::Desktop::GetInstance()->SetCursor(cursor);
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 731
732 // static 732 // static
733 bool NativeWidgetPrivate::IsMouseButtonDown() { 733 bool NativeWidgetPrivate::IsMouseButtonDown() {
734 // http://crbug.com/102577 734 // http://crbug.com/102577
735 NOTIMPLEMENTED(); 735 NOTIMPLEMENTED();
736 return false; 736 return false;
737 } 737 }
738 738
739 } // namespace internal 739 } // namespace internal
740 } // namespace views 740 } // namespace views
OLDNEW
« views/views.gyp ('K') | « views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698