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

Side by Side Diff: ui/views/widget/native_widget_aura.h

Issue 8682029: Make drag and drop work on webpage. Also slightly modify drag drop workflow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: modified according to comments Created 9 years 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/aura_shell/drag_drop_controller_unittest.cc ('k') | ui/views/widget/native_widget_aura.cc » ('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) 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 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual bool ShouldActivate(aura::Event* event) OVERRIDE; 134 virtual bool ShouldActivate(aura::Event* event) OVERRIDE;
135 virtual void OnActivated() OVERRIDE; 135 virtual void OnActivated() OVERRIDE;
136 virtual void OnLostActive() OVERRIDE; 136 virtual void OnLostActive() OVERRIDE;
137 virtual void OnCaptureLost() OVERRIDE; 137 virtual void OnCaptureLost() OVERRIDE;
138 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 138 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
139 virtual void OnWindowDestroying() OVERRIDE; 139 virtual void OnWindowDestroying() OVERRIDE;
140 virtual void OnWindowDestroyed() OVERRIDE; 140 virtual void OnWindowDestroyed() OVERRIDE;
141 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; 141 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE;
142 142
143 // Overridden from aura::WindowDragDropDelegate: 143 // Overridden from aura::WindowDragDropDelegate:
144 virtual bool CanDrop(const aura::DropTargetEvent& event) OVERRIDE;
145 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; 144 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE;
146 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; 145 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE;
147 virtual void OnDragExited() OVERRIDE; 146 virtual void OnDragExited() OVERRIDE;
148 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; 147 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE;
149 148
150 protected: 149 protected:
151 internal::NativeWidgetDelegate* delegate() { return delegate_; } 150 internal::NativeWidgetDelegate* delegate() { return delegate_; }
152 151
153 private: 152 private:
154 class DesktopObserverImpl; 153 class DesktopObserverImpl;
(...skipping 19 matching lines...) Expand all
174 scoped_ptr<DesktopObserverImpl> desktop_observer_; 173 scoped_ptr<DesktopObserverImpl> desktop_observer_;
175 174
176 scoped_ptr<DropHelper> drop_helper_; 175 scoped_ptr<DropHelper> drop_helper_;
177 176
178 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 177 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
179 }; 178 };
180 179
181 } // namespace views 180 } // namespace views
182 181
183 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 182 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/drag_drop_controller_unittest.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698