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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_win.h

Issue 6462009: Allow dragging and dropping of URLs to any portion of the toolbar view.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
Index: chrome/browser/autocomplete/autocomplete_edit_view_win.h
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit_view_win.h (revision 74816)
+++ chrome/browser/autocomplete/autocomplete_edit_view_win.h (working copy)
@@ -139,6 +139,7 @@
virtual bool IsImeComposing() const;
virtual views::View* AddToView(views::View* parent);
+ virtual int OnPerformDrop(const views::DropTargetEvent& event);
int GetPopupMaxYCoordinate();
@@ -244,6 +245,9 @@
DISALLOW_COPY_AND_ASSIGN(ScopedFreeze);
};
+ class EditDropTarget;
+ friend class EditDropTarget;
+
// This object suspends placing any operations on the edit's undo stack until
// the object is destroyed. If we don't do this, some of the operations we
// perform behind the user's back will be undoable by the user, which feels
@@ -412,6 +416,9 @@
// triggerred no matter if the text is actually changed or not.
bool OnAfterPossibleChangeInternal(bool force_text_changed);
+ // Common implementation for performing a drop on the edit view.
+ int OnPerformDropImpl(const views::DropTargetEvent& event, bool in_drag);
+
scoped_ptr<AutocompleteEditModel> model_;
scoped_ptr<AutocompletePopupView> popup_view_;
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_views.cc ('k') | chrome/browser/autocomplete/autocomplete_edit_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698