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

Unified Diff: app/win/drag_source.h

Issue 3822007: Move BaseDropTarget and BaseDragSource from base to app/win. Remove the "Base... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/app_base.gypi ('k') | app/win/drag_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/win/drag_source.h
===================================================================
--- app/win/drag_source.h (revision 62848)
+++ app/win/drag_source.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_BASE_DRAG_SOURCE_H_
-#define BASE_BASE_DRAG_SOURCE_H_
+#ifndef APP_WIN_DRAG_SOURCE_H_
+#define APP_WIN_DRAG_SOURCE_H_
#pragma once
#include <objidl.h>
@@ -11,20 +11,18 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
-///////////////////////////////////////////////////////////////////////////////
-//
-// BaseDragSource
-//
-// A base IDropSource implementation. Handles notifications sent by an active
-// drag-drop operation as the user mouses over other drop targets on their
-// system. This object tells Windows whether or not the drag should continue,
-// and supplies the appropriate cursors.
-//
-class BaseDragSource : public IDropSource,
- public base::RefCountedThreadSafe<BaseDragSource> {
+namespace app {
+namespace win {
+
+// A base IDropSource implementation. Handles notifications sent by an active
+// drag-drop operation as the user mouses over other drop targets on their
+// system. This object tells Windows whether or not the drag should continue,
+// and supplies the appropriate cursors.
+class DragSource : public IDropSource,
+ public base::RefCountedThreadSafe<DragSource> {
public:
- BaseDragSource();
- virtual ~BaseDragSource() { }
+ DragSource();
+ virtual ~DragSource() {}
// Stop the drag operation at the next chance we get. This doesn't
// synchronously stop the drag (since Windows is controlling that),
@@ -43,15 +41,18 @@
ULONG __stdcall Release();
protected:
- virtual void OnDragSourceCancel() { }
- virtual void OnDragSourceDrop() { }
- virtual void OnDragSourceMove() { }
+ virtual void OnDragSourceCancel() {}
+ virtual void OnDragSourceDrop() {}
+ virtual void OnDragSourceMove() {}
private:
// Set to true if we want to cancel the drag operation.
bool cancel_drag_;
- DISALLOW_COPY_AND_ASSIGN(BaseDragSource);
+ DISALLOW_COPY_AND_ASSIGN(DragSource);
};
-#endif // BASE_BASE_DRAG_SOURCE_H_
+} // namespace win
+} // namespace app
+
+#endif // APP_WIN_DRAG_SOURCE_H_
« no previous file with comments | « app/app_base.gypi ('k') | app/win/drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698